RandomNormalLike - 1 vs 22¶
Next section compares an older to a newer version of the same operator after both definition are converted into markdown text. Green means an addition to the newer version, red means a deletion. Anything else is unchanged.
RandomNormalLike1 → RandomNormalLike22
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Generate a tensor with random values drawn from a normal distribution.
|
2
2
|
The shape of the output tensor is copied from the shape of the input tensor,
|
3
3
|
and the parameters of the normal distribution are specified by mean and scale.
|
4
4
|
The data type is specified by the 'dtype' argument, or copied from the input tensor if not provided.
|
5
5
|
The 'dtype' argument must be one of the data types specified in the 'DataType' enum field in the
|
6
6
|
TensorProto message, and be valid as an output type.
|
7
7
|
### Attributes
|
8
8
|
* **dtype - INT** :
|
9
9
|
(Optional) The data type for the elements of the output tensor, if not specified, we will use the data type of the input tensor.
|
10
10
|
* **mean - FLOAT** (default is '0.0'):
|
11
11
|
The mean of the normal distribution.
|
12
12
|
* **scale - FLOAT** (default is '1.0'):
|
13
13
|
The standard deviation of the normal distribution.
|
14
14
|
* **seed - FLOAT** :
|
15
15
|
(Optional) Seed to the random generator, if not specified we will auto generate one.
|
16
16
|
### Inputs
|
17
17
|
- **input** (heterogeneous) - **T1**:
|
18
18
|
Input tensor to copy shape and optionally type information from.
|
19
19
|
### Outputs
|
20
20
|
- **output** (heterogeneous) - **T2**:
|
21
21
|
Output tensor of random values drawn from normal distribution
|
22
22
|
### Type Constraints
|
23
|
-
* **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) ):
|
23
|
+
* **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) ):
|
24
24
|
Constrain to any tensor type. If the dtype attribute is not provided this must be a valid output type.
|
25
|
-
* **T2** in ( tensor(double), tensor(float), tensor(float16) ):
|
25
|
+
* **T2** in ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16) ):
|
26
26
|
Constrain output types to float tensors.
|