| 947 | } |
| 948 | |
| 949 | string ToStringTruncated(const LiteralSlice& literal) { |
| 950 | return RecursiveElementCount(literal.shape()) < 1000 |
| 951 | ? literal.ToString() |
| 952 | : "[TRUNCATED, Literal with more than 1000 values]"; |
| 953 | } |
| 954 | |
| 955 | } // namespace literal_comparison |
| 956 | } // namespace xla |