| 1097 | } |
| 1098 | |
| 1099 | string LiteralBase::ToStringWithLayout() const { |
| 1100 | std::vector<string> pieces; |
| 1101 | CHECK(LayoutUtil::HasLayout(this->shape())); |
| 1102 | ToStringHelper(*this, {}, /*print_shape=*/true, |
| 1103 | /*print_layout=*/true, &pieces); |
| 1104 | return absl::StrJoin(pieces, ""); |
| 1105 | } |
| 1106 | |
| 1107 | void LiteralBase::EachCellAsString( |
| 1108 | const std::function<void(absl::Span<const int64> indices, |
nothing calls this directly
no test coverage detected