| torch_empty {torch} | R Documentation | 
Empty
Description
Empty
Usage
torch_empty(
  ...,
  names = NULL,
  dtype = NULL,
  layout = NULL,
  device = NULL,
  requires_grad = FALSE
)
Arguments
... | 
 a sequence of integers defining the shape of the output tensor.  | 
names | 
 optional character vector naming each dimension.  | 
dtype | 
 (  | 
layout | 
 (  | 
device | 
 (  | 
requires_grad | 
 (bool, optional) If autograd should record operations on the        returned tensor. Default:   | 
empty(*size, out=NULL, dtype=NULL, layout=torch.strided, device=NULL, requires_grad=False, pin_memory=False) -> Tensor
Returns a tensor filled with uninitialized data. The shape of the tensor is
defined by the variable argument size.
Examples
if (torch_is_installed()) {
torch_empty(c(2, 3))
}