R/PipeOpTorchReshape.R
nn_unsqueeze.Rd
Unsqueezes a tensor by calling torch::torch_unsqueeze() with the given dimension dim.
torch::torch_unsqueeze()
dim
nn_unsqueeze(dim)
(integer(1)) The dimension to unsqueeze.
integer(1)