Meshgrid
Meshgrid
torch_meshgrid(tensors)
tensors |
(list of Tensor) list of scalars or 1 dimensional tensors. Scalars will be treated (1,). |
Take N tensors, each of which can be either scalar or 1-dimensional
vector, and create N N-dimensional grids, where the i th
grid is defined by
expanding the i th
input over dimensions defined by other inputs.
if (torch_is_installed()) { x = torch_tensor(c(1, 2, 3)) y = torch_tensor(c(4, 5, 6)) out = torch_meshgrid(list(x, y)) out }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.