Method RandomUniform
RandomUniform(TensorShape, float, float, float?)
Generates an output tensor of a given shape with random values in a uniform distribution between a given low
and high
, and an optional seed
value.
Declaration
public TensorFloat RandomUniform(TensorShape S, float low, float high, float? seed)
Parameters
Type | Name | Description |
---|---|---|
TensorShape | S | The shape to use for the output tensor. |
float | low | The lower end of the interval of the uniform distribution to use to generate the output. |
float | high | The upper end of the interval of the uniform 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. |