torch_scalar_tensor | R Documentation |
Creates a singleton dimension tensor.
torch_scalar_tensor(value, dtype = NULL, device = NULL, requires_grad = FALSE)
value |
the value you want to use |
dtype |
( |
device |
( |
requires_grad |
(bool, optional) If autograd should record operations on the returned tensor. Default: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.