T - data type for output() outputpublic final class Enter<T> extends PrimitiveOp implements Operand<T>
This op is used together with `Exit` to create loops in the graph. 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Enter.Options
Optional attributes for
Enter |
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> Enter<T> |
create(Scope scope,
Operand<T> data,
String frameName,
Enter.Options... options)
Factory method to create a class wrapping a new Enter operation.
|
static Enter.Options |
isConstant(Boolean isConstant) |
Output<T> |
output()
The same tensor as `data`.
|
static Enter.Options |
parallelIterations(Long parallelIterations) |
equals, hashCode, op, toStringpublic static <T> Enter<T> create(Scope scope, Operand<T> data, String frameName, Enter.Options... options)
scope - current scopedata - The tensor to be made available to the child frame.frameName - The name of the child frame.options - carries optional attributes valuespublic static Enter.Options isConstant(Boolean isConstant)
isConstant - If true, the output is constant within the child frame.public static Enter.Options parallelIterations(Long parallelIterations)
parallelIterations - The number of iterations allowed to run in parallel.public Output<T> asOutput()
OperandInputs 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<T>OperationBuilder.addInput(Output)Copyright © 2022. All rights reserved.