Returns the number of fusion instructions in the module.
| 29 | protected: |
| 30 | // Returns the number of fusion instructions in the module. |
| 31 | int FusionCount(const HloModule* m) { |
| 32 | int count = 0; |
| 33 | for (HloComputation* computation : m->computations()) { |
| 34 | if (computation->IsFusionComputation()) { |
| 35 | count++; |
| 36 | } |
| 37 | } |
| 38 | return count; |
| 39 | } |
| 40 | |
| 41 | Defuser defuser_; |
| 42 | const Shape shape_ = ShapeUtil::MakeShape(F32, {2, 2}); |
nothing calls this directly
no test coverage detected