#include <control_flow_ops.h>
Forwards data
to the output port determined by pred
.
If pred
is true, the data
input is forwarded to output_true
. Otherwise, the data goes to output_false
.
Arguments:
Returns:
Output
output_false: If pred
is false, data will be forwarded to this output.Output
output_true: If pred
is true, data will be forwarded to this output. Constructors and Destructors | |
---|---|
Switch(const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input pred) |
Public attributes | |
---|---|
output_false | |
output_true |
::tensorflow::Output output_false
::tensorflow::Output output_true
Switch( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input pred )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/switch.html