
Last chance! 50% off unlimited learning
Sale ends in
Outer
torch_outer(self, vec2)
(Tensor) 1-D input vector
(Tensor) 1-D input vector
Outer product of input
and vec2
.
If input
is a vector of size vec2
is a vector of
size out
must be a matrix of size
# NOT RUN {
if (torch_is_installed()) {
v1 <- torch_arange(1., 5.)
v2 <- torch_arange(1., 4.)
torch_outer(v1, v2)
}
# }
Run the code above in your browser using DataLab