RandomUniformLike - version 1#
This page documents version 1 of operator RandomUniformLike. See RandomUniformLike 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 output tensor is copied from the shape of the input tensor,
and the parameters of the uniform distribution are specified by low and high.
The data type is specified by the ‘dtype’ argument, or copied from the input tensor if not provided. The ‘dtype’ argument must be one of the data types specified in the ‘DataType’ enum field in the TensorProto message and be valid as an output type.
Inputs
input (T1): Input tensor to copy shape and optionally type information from.
Outputs
output (T2): Output tensor of random values drawn from uniform distribution
Attributes
dtype (int): (Optional) The data type for the elements of the output tensor, if not specified, we will use the data type of the input tensor.
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.
Type Constraints
T1: Constrain to any tensor type. If the dtype attribute is not provided this must be a valid output type. Allowed types: tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8).
T2: Constrain output types to float tensors. Allowed types: tensor(double), tensor(float), tensor(float16).