| 1081 | } // namespace |
| 1082 | |
| 1083 | string LiteralBase::ToString() const { |
| 1084 | std::vector<string> pieces; |
| 1085 | CHECK(LayoutUtil::HasLayout(this->shape())); |
| 1086 | ToStringHelper(*this, {}, /*print_shape=*/true, |
| 1087 | /*print_layout=*/false, &pieces); |
| 1088 | return absl::StrJoin(pieces, ""); |
| 1089 | } |
| 1090 | |
| 1091 | string LiteralBase::ToStringWithoutShape() const { |
| 1092 | std::vector<string> pieces; |
no test coverage detected