IsVariableInitialized

public final class IsVariableInitialized

Checks whether a tensor has been initialized.

Outputs boolean scalar indicating whether the tensor has been initialized.

Public Methods

Output<Boolean>
asOutput()
Returns the symbolic handle of a tensor.
static <T> IsVariableInitialized
create(Scope scope, Operand<T> ref)
Factory method to create a class wrapping a new IsVariableInitialized operation.
Output<Boolean>

Inherited Methods

Public Methods

public Output<Boolean> asOutput ()

Returns the symbolic handle of a 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 IsVariableInitialized create (Scope scope, Operand<T> ref)

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

Parameters
scope current scope
ref Should be from a `Variable` node. May be uninitialized.
Returns
  • a new instance of IsVariableInitialized

public Output<Boolean> isInitialized ()