| 1548 | } |
| 1549 | |
| 1550 | void DeadnessAnalysisImpl::Print() const { |
| 1551 | std::vector<TensorId> tensor_ids; |
| 1552 | for (const auto& kv_pair : predicate_map_) { |
| 1553 | tensor_ids.push_back(kv_pair.first); |
| 1554 | } |
| 1555 | |
| 1556 | std::sort(tensor_ids.begin(), tensor_ids.end()); |
| 1557 | |
| 1558 | for (TensorId tensor_id : tensor_ids) { |
| 1559 | auto it = predicate_map_.find(tensor_id); |
| 1560 | CHECK(it != predicate_map_.end()) << tensor_id.ToString(); |
| 1561 | VLOG(2) << tensor_id.ToString() << " -> " << it->second->ToString(); |
| 1562 | } |
| 1563 | } |
| 1564 | |
| 1565 | } // namespace |
| 1566 | |