xlnstorch.rand_like

Contents

xlnstorch.rand_like#

xlnstorch.rand_like(input, *, layout=None, device=None, requires_grad=False, memory_format=torch.preserve_format, pin_memory=False, f=None, b=None)#

Returns an LNSTensor filled with random numbers from a uniform distribution on the interval [0, 1], with the same shape and properties as the input tensor. See torch.rand_like for more details on the parameters.

Return type:

LNSTensor