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,
Operand<T> inputs)
Factory method to create a class to wrap a new RefMerge operation to the graph.
|
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, toStringpublic static <T> RefMerge<T> create(Scope scope, Operand<T> inputs)
scope - current graph scopeinputs - The input tensors, exactly one of which will become available.Copyright © 2015–2019. All rights reserved.