RandomNormalLike¶
RandomNormalLike - 22¶
Version¶
domain:
main
since_version:
22
function:
False
support_level:
SupportType.COMMON
shape inference:
True
This version of the operator has been available since version 22.
Summary¶
Generate a tensor with random values drawn from a normal distribution.
The shape of the output tensor is copied from the shape of the input tensor,
and the parameters of the normal distribution are specified by mean
and scale
.
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.
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.
mean - FLOAT (default is
'0.0'
):The mean of the normal distribution.
scale - FLOAT (default is
'1.0'
):The standard deviation of the normal distribution.
seed - FLOAT :
(Optional) Seed to the random generator, if not specified we will auto generate one.
Inputs¶
input (heterogeneous) - T1:
Input tensor to copy shape and optionally type information from.
Outputs¶
output (heterogeneous) - T2:
Output tensor of random values drawn from normal distribution
Type Constraints¶
T1 in (
tensor(bfloat16)
,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)
):Constrain to any tensor type. If the dtype attribute is not provided this must be a valid output type.
T2 in (
tensor(bfloat16)
,tensor(double)
,tensor(float)
,tensor(float16)
):Constrain output types to float tensors.
RandomNormalLike - 1¶
Version¶
domain:
main
since_version:
1
function:
False
support_level:
SupportType.COMMON
shape inference:
True
This version of the operator has been available since version 1.
Summary¶
Generate a tensor with random values drawn from a normal distribution.
The shape of the output tensor is copied from the shape of the input tensor,
and the parameters of the normal distribution are specified by mean
and scale
.
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.
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.
mean - FLOAT (default is
'0.0'
):The mean of the normal distribution.
scale - FLOAT (default is
'1.0'
):The standard deviation of the normal distribution.
seed - FLOAT :
(Optional) Seed to the random generator, if not specified we will auto generate one.
Inputs¶
input (heterogeneous) - T1:
Input tensor to copy shape and optionally type information from.
Outputs¶
output (heterogeneous) - T2:
Output tensor of random values drawn from normal distribution
Type Constraints¶
T1 in (
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)
):Constrain to any tensor type. If the dtype attribute is not provided this must be a valid output type.
T2 in (
tensor(double)
,tensor(float)
,tensor(float16)
):Constrain output types to float tensors.