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

Method StateMap

tensorflow/compiler/tf2xla/functionalize_cond.cc:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155};
156
157StateMap::StateMap(Graph* graph) {
158 node_to_condid_map_.resize(graph->num_node_ids());
159 node_to_ancestorid_map_.resize(graph->num_node_ids());
160 // Initialize the dead state (empty state is designated with a nullptr).
161 dead_id_ = GetCondId(
162 {std::make_pair(OutputTensor(nullptr, -1), BranchType::kNeither)});
163}
164
165bool StateMap::IsDead(StateMap::CondId id) const { return id == dead_id_; }
166

Callers

nothing calls this directly

Calls 3

OutputTensorClass · 0.50
resizeMethod · 0.45
num_node_idsMethod · 0.45

Tested by

no test coverage detected