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

Method GetPredicateFor

tensorflow/compiler/jit/deadness_analysis.cc:1541–1548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1539}
1540
1541StatusOr<DeadnessAnalysis::DeadnessPredicate>
1542DeadnessAnalysisImpl::GetPredicateFor(Node* n, int oidx) const {
1543 auto it = predicate_map_.find(TensorId(n->name(), oidx));
1544 TF_RET_CHECK(it != predicate_map_.end())
1545 << "could not find " << TensorId(n->name(), oidx).ToString()
1546 << " in predicate map";
1547 return MakeDeadnessPredicate(it->second);
1548}
1549
1550void DeadnessAnalysisImpl::Print() const {
1551 std::vector<TensorId> tensor_ids;

Callers 2

Calls 5

nameMethod · 0.65
TensorIdClass · 0.50
findMethod · 0.45
endMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected