ClikaRT::ops::randint
function
randint()
Tensor randint(
int64_t low,
int64_t high,
ClikaRT::Span<const ScalarOrTensor> shape,
DataType dtype = DataType::Int64,
StreamOrDevice s = {}
)
Uniform random integers in the half-open range [low, high).
Parameters
low: inclusive lower bound.high: EXCLUSIVE upper bound; must exceedlow.shape: the output shape.dtype: output integer dtype; defaultInt64.s: stream or device; default = the default device.
Returns: a shape-shaped integer tensor.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) whenhigh <= lowor the range does not fitdtype.
Declared in ClikaRT/compute/ops.h, line 4097