Method RandomNormal
RandomNormal(TensorShape, float, float, float?)
Generates an output tensor of a given shape with random values in a normal distribution with given mean and scale, and an optional seed value.
Declaration
public TensorFloat RandomNormal(TensorShape S, float mean, float scale, float? seed)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorShape | S | The shape to use for the output tensor. |
| float | mean | The mean of the normal distribution to use to generate the output. |
| float | scale | The standard deviation of the normal distribution to use to generate the output. |
| float? | seed | The optional seed to use for the random number generation. If this is |
Returns
| Type | Description |
|---|---|
| TensorFloat | The computed output tensor. |