ClikaRT::ops::randint_like
function
randint_like()
Tensor randint_like(
Tensor reference,
int64_t low,
int64_t high,
StreamOrDevice s = {}
)
Uniform integers in [low, high) shaped and typed like reference.
Parameters
reference: the tensor whose shape/dtype the output copies.low: inclusive lower bound.high: exclusive upper bound.s: stream or device; default = the default device.
Returns: integer draws, reference's shape and dtype.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) whenhigh <= low.
Declared in ClikaRT/compute/ops.h, line 4107