| 46 | } |
| 47 | |
| 48 | string HloPosition::ToString() const { |
| 49 | string index_str = |
| 50 | instruction->shape().IsTuple() ? (" " + index.ToString()) : ""; |
| 51 | return StrCat(instruction->name(), index_str); |
| 52 | } |
| 53 | |
| 54 | std::ostream& operator<<(std::ostream& out, const HloPosition& position) { |
| 55 | out << position.ToString(); |