| 88 | } |
| 89 | |
| 90 | string HloValue::ToShortString() const { |
| 91 | return absl::StrFormat( |
| 92 | "<%d %s%s%s%s>", id(), instruction()->name(), |
| 93 | instruction()->shape().IsTuple() ? index().ToString() : "", |
| 94 | is_phi() ? " (phi)" : "", |
| 95 | has_color() ? StrCat(" @", color().value()) : ""); |
| 96 | } |
| 97 | |
| 98 | string HloValue::ToString(int indent) const { |
| 99 | string indentation(indent, ' '); |
no test coverage detected