RefEnter

public final class RefEnter

Creates or finds a child frame, and makes `data` available to the child frame.

The unique `frame_name` is used by the `Executor` to identify frames. If `is_constant` is true, `output` is a constant in the child frame; otherwise it may be changed in the child frame. At most `parallel_iterations` iterations are run in parallel in the child frame.

Nested Classes

class RefEnter.Options Optional attributes for RefEnter  

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of a tensor.
static <T> RefEnter<T>
create(Scope scope, Operand<T> data, String frameName, Options... options)
Factory method to create a class wrapping a new RefEnter operation.
static RefEnter.Options
isConstant(Boolean isConstant)
Output<T>
output()
The same tensor as `data`.
static RefEnter.Options
parallelIterations(Long parallelIterations)

Inherited Methods

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.Operand
abstract Output<T>
asOutput()
Returns the symbolic handle of a tensor.

Public Methods

public Output<T> 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 RefEnter<T> create (Scope scope, Operand<T> data, String frameName, Options... options)

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

Parameters
scope current scope
data The tensor to be made available to the child frame.
frameName The name of the child frame.
options carries optional attributes values
Returns
  • a new instance of RefEnter

public static RefEnter.Options isConstant (Boolean isConstant)

Parameters
isConstant If true, the output is constant within the child frame.

public Output<T> output ()

The same tensor as `data`.

public static RefEnter.Options parallelIterations (Long parallelIterations)

Parameters
parallelIterations The number of iterations allowed to run in parallel.