T
- data type for outputFalse()
output@Operator public final class SwitchCond<T> extends PrimitiveOp
If `pred` is true, the `data` input is forwarded to `output_true`. Otherwise, the data goes to `output_false`.
See also `RefSwitch` and `Merge`.
operation
Modifier and Type | Method and Description |
---|---|
static <T> SwitchCond<T> |
create(Scope scope,
Operand<T> data,
Operand<Boolean> pred)
Factory method to create a class wrapping a new SwitchCond operation.
|
Output<T> |
outputFalse()
If `pred` is false, data will be forwarded to this output.
|
Output<T> |
outputTrue()
If `pred` is true, data will be forwarded to this output.
|
equals, hashCode, op, toString
public static <T> SwitchCond<T> create(Scope scope, Operand<T> data, Operand<Boolean> pred)
scope
- current scopedata
- The tensor to be forwarded to the appropriate output.pred
- A scalar that specifies which output port will receive data.public Output<T> outputFalse()
Copyright © 2022. All rights reserved.