U
- data type for output()
outputpublic final class NonDeterministicInts<U> extends PrimitiveOp implements Operand<U>
This op may use some OS-provided source of non-determinism (e.g. an RNG), so each execution will give different results.
operation
Modifier and Type | Method and Description |
---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> NonDeterministicInts<Long> |
create(Scope scope,
Operand<T> shape)
Factory method to create a class wrapping a new NonDeterministicInts operation using default output types.
|
static <U,T> NonDeterministicInts<U> |
create(Scope scope,
Operand<T> shape,
Class<U> dtype)
Factory method to create a class wrapping a new NonDeterministicInts operation.
|
Output<U> |
output()
Non-deterministic integer values with specified shape.
|
equals, hashCode, op, toString
public static <U,T> NonDeterministicInts<U> create(Scope scope, Operand<T> shape, Class<U> dtype)
scope
- current scopeshape
- The shape of the output tensor.dtype
- The type of the output.public static <T> NonDeterministicInts<Long> create(Scope scope, Operand<T> shape)
scope
- current scopeshape
- The shape of the output tensor.public Output<U> asOutput()
Operand
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.
asOutput
in interface Operand<U>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.