| 1089 | } |
| 1090 | |
| 1091 | string LiteralBase::ToStringWithoutShape() const { |
| 1092 | std::vector<string> pieces; |
| 1093 | CHECK(LayoutUtil::HasLayout(this->shape())); |
| 1094 | ToStringHelper(*this, {}, /*print_shape=*/false, |
| 1095 | /*print_layout=*/false, &pieces); |
| 1096 | return absl::StrJoin(pieces, ""); |
| 1097 | } |
| 1098 | |
| 1099 | string LiteralBase::ToStringWithLayout() const { |
| 1100 | std::vector<string> pieces; |