| 40 | using ::testing::UnorderedElementsAre; |
| 41 | |
| 42 | int64 CountCopies(const HloComputation& computation) { |
| 43 | int64 count = 0; |
| 44 | for (const auto& instruction : computation.instructions()) { |
| 45 | if (instruction->opcode() == HloOpcode::kCopy) { |
| 46 | count++; |
| 47 | } |
| 48 | } |
| 49 | return count; |
| 50 | } |
| 51 | |
| 52 | int64 CountCopies(const HloModule& module) { |
| 53 | int64 count = 0; |
no test coverage detected