xlnstorch.LNSTensor.clone

xlnstorch.LNSTensor.clone#

LNSTensor.clone(*, memory_format=torch.preserve_format)#

Returns a copy of the LNSTensor with the same data and base.

Parameters:

memory_format (torch.memory_format, optional) – The desired memory format of the returned tensor. Defaults to torch.preserve_format.

Return type:

LNSTensor