xlnstorch.empty_like#
- xlnstorch.empty_like(input, *, layout=None, device=None, requires_grad=False, memory_format=torch.preserve_format, pin_memory=False, f=None, b=None)#
Returns an uninitialized LNSTensor with the same shape and base (unless otherwise specified) as the input tensor. Note that the contents of the tensor comes from torch.empty_like, so is uninitialized and may contain arbitrary values.