RandomUniform - version 1#
This page documents version 1 of operator RandomUniform. See RandomUniform for the latest version (since version 22).
Domain:
ai.onnxSince version: 1
Generate a tensor with random values drawn from a uniform distribution. The shape
of the tensor is specified by the shape argument and the range by low and high.
The data type is specified by the ‘dtype’ argument. The ‘dtype’ argument must be one of the data types specified in the ‘DataType’ enum field in the TensorProto message.
Outputs
output (T): Output tensor of random values drawn from uniform distribution
Attributes
dtype (int): The data type for the elements of the output tensor. If not specified, default is TensorProto::FLOAT.
high (float): Upper boundary of the output values.
low (float): Lower boundary of the output values.
seed (float): (Optional) Seed to the random generator, if not specified we will auto generate one.
shape (int[]): The shape of the output tensor.
Type Constraints
T: Constrain output types to float tensors. Allowed types: tensor(double), tensor(float), tensor(float16).