qfeval_functions.functions.rand_like

rand_like(input, *, dtype=None, device=None)[source]

Returns a tensor with the same size as input that is filled with random numbers from a uniform distribution on the interval [0, 1). If the seed is fixed, it must be reproducible in any device.

Return type:

Tensor