Chain_matmul
Source:R/gen-namespace-docs.R, R/gen-namespace-examples.R, R/gen-namespace.R
torch_chain_matmul.RdChain_matmul
TEST
Returns the matrix product of the [CLRS]_). Note that since this is a function to compute the product,
Examples
if (torch_is_installed()) {
a = torch_randn(c(3, 4))
b = torch_randn(c(4, 5))
c = torch_randn(c(5, 6))
d = torch_randn(c(6, 7))
torch_chain_matmul(list(a, b, c, d))
}
#> torch_tensor
#> -1.4989 0.6183 -1.8391 4.4268 0.4675 -1.2950 -3.9240
#> -13.5784 -27.3879 6.3002 3.1658 3.0611 -3.1922 -5.3944
#> -11.1387 -14.3907 5.3606 5.4769 14.9163 6.3183 -0.8756
#> [ CPUFloatType{3,7} ]