static*/
| 1567 | DeadnessAnalysis::~DeadnessAnalysis() {} |
| 1568 | |
| 1569 | /*static*/ Status DeadnessAnalysis::Run( |
| 1570 | const Graph& graph, std::unique_ptr<DeadnessAnalysis>* result) { |
| 1571 | std::unique_ptr<DeadnessAnalysisImpl> analysis( |
| 1572 | new DeadnessAnalysisImpl(&graph)); |
| 1573 | TF_RETURN_IF_ERROR(analysis->Populate(/*enable_optimistic=*/true)); |
| 1574 | |
| 1575 | if (VLOG_IS_ON(2)) { |
| 1576 | analysis->Print(); |
| 1577 | } |
| 1578 | |
| 1579 | *result = std::move(analysis); |
| 1580 | return Status::OK(); |
| 1581 | } |
| 1582 | |
| 1583 | absl::flat_hash_map<TensorId, string, TensorId::Hasher> |
| 1584 | DeadnessAnalysisImpl::PredicateMapAsString() const { |