ClikaRT::ops::rand_like
function
rand_like()
Tensor rand_like(Tensor reference, StreamOrDevice s = {})
Uniform [0, 1) draws shaped and typed like reference.
Parameters
reference: the tensor whose shape/dtype the output copies.s: stream or device; default = the default device.
Returns: uniform draws, reference's shape and dtype.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) on a non-float reference dtype.
Declared in ClikaRT/compute/ops.h, line 4085