| 179 | } |
| 180 | |
| 181 | bool IsInputFusible(const HloInstruction& instr) { |
| 182 | // Input fusion only handles non-elemental reduction and scatter operations. |
| 183 | return instr.IsFusible() && |
| 184 | (IsInputFusibleReduction(instr) || IsInputFusibleScatter(instr)); |
| 185 | } |
| 186 | |
| 187 | bool IsLoopFusible(const HloInstruction& instr) { |
| 188 | // Don't fuse get-tuple-element on GPU: We can, but it's slower than not |
no test coverage detected