T
- data type for output()
outputpublic final class RefMerge<T> extends PrimitiveOp
`Merge` waits for at least one of the tensors in `inputs` to become available. It is usually combined with `Switch` to implement branching.
`Merge` forwards the first tensor for become available to `output`, and sets `value_index` to its index in `inputs`.
operation
Modifier and Type | Method and Description |
---|---|
static <T> RefMerge<T> |
create(Scope scope,
Iterable<Operand<T>> inputs)
Factory method to create a class wrapping a new RefMerge operation.
|
Output<T> |
output()
Will be set to the available input tensor.
|
Output<Integer> |
valueIndex()
The index of the chosen input tensor in `inputs`.
|
equals, hashCode, op, toString
public static <T> RefMerge<T> create(Scope scope, Iterable<Operand<T>> inputs)
scope
- current scopeinputs
- The input tensors, exactly one of which will become available.Copyright © 2022. All rights reserved.