View source: R/gen-namespace.R
torch_ger | R Documentation |
Ger
torch_ger(self, vec2)
self |
(Tensor) 1-D input vector |
vec2 |
(Tensor) 1-D input vector |
Outer product of input
and vec2
.
If input
is a vector of size n
and vec2
is a vector of
size m
, then out
must be a matrix of size (n \times m)
.
This function does not broadcast .
if (torch_is_installed()) {
v1 = torch_arange(1., 5.)
v2 = torch_arange(1., 4.)
torch_ger(v1, v2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.