| 546 | } |
| 547 | |
| 548 | int64 HloModule::instruction_count() const { |
| 549 | int64 n = 0; |
| 550 | for (const auto& computation : computations_) { |
| 551 | n += computation->instruction_count(); |
| 552 | } |
| 553 | return n; |
| 554 | } |
| 555 | |
| 556 | std::vector<HloComputation*> HloModule::MakeComputationPostOrder() const { |
| 557 | // First determine all root computations by building a set of nonroot |
no outgoing calls