| 1539 | } |
| 1540 | |
| 1541 | StatusOr<DeadnessAnalysis::DeadnessPredicate> |
| 1542 | DeadnessAnalysisImpl::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 | |
| 1550 | void DeadnessAnalysisImpl::Print() const { |
| 1551 | std::vector<TensorId> tensor_ids; |
no test coverage detected