StatelessRandomUniform

public final class StatelessRandomUniform

Outputs deterministic pseudorandom random values from a uniform distribution.

The generated values follow a uniform distribution in the range `[0, 1)`. The lower bound 0 is included in the range, while the upper bound 1 is excluded.

The outputs are a deterministic function of `shape` and `seed`.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<V>
asOutput()
Returns the symbolic handle of the tensor.
static StatelessRandomUniform<TFloat32>
create(Scope scope, Operand<? extends TNumber> shape, Operand<? extends TNumber> seed)
Factory method to create a class wrapping a new StatelessRandomUniform operation using default output types.
static <V extends TNumber> StatelessRandomUniform<V>
create(Scope scope, Operand<? extends TNumber> shape, Operand<? extends TNumber> seed, Class<V> dtype)
Factory method to create a class wrapping a new StatelessRandomUniform operation.
Output<V>
output()
Random values with specified shape.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "StatelessRandomUniform"

Public Methods

public Output<V> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static StatelessRandomUniform<TFloat32> create (Scope scope, Operand<? extends TNumber> shape, Operand<? extends TNumber> seed)

Factory method to create a class wrapping a new StatelessRandomUniform operation using default output types.

Parameters
scope current scope
shape The shape of the output tensor.
seed 2 seeds (shape [2]).
Returns
  • a new instance of StatelessRandomUniform

public static StatelessRandomUniform<V> create (Scope scope, Operand<? extends TNumber> shape, Operand<? extends TNumber> seed, Class<V> dtype)

Factory method to create a class wrapping a new StatelessRandomUniform operation.

Parameters
scope current scope
shape The shape of the output tensor.
seed 2 seeds (shape [2]).
dtype The type of the output.
Returns
  • a new instance of StatelessRandomUniform

public Output<V> output ()

Random values with specified shape.