MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetSwitchValue

Function GetSwitchValue

tensorflow/compiler/tf2xla/functionalize_cond.cc:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Status GetSwitchValue(const Node& switch_node, OutputTensor* val) {
133 const Edge* val_edge;
134 TF_RETURN_IF_ERROR(switch_node.input_edge(0, &val_edge));
135 *val = OutputTensor(val_edge->src(), val_edge->src_output());
136 return Status::OK();
137}
138
139bool StateMap::OutputTensorLess::operator()(const OutputTensor& lhs,
140 const OutputTensor& rhs) const {

Callers

nothing calls this directly

Calls 4

input_edgeMethod · 0.80
OutputTensorClass · 0.50
srcMethod · 0.45
src_outputMethod · 0.45

Tested by

no test coverage detected