MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ToStringTruncated

Function ToStringTruncated

tensorflow/compiler/xla/literal_comparison.cc:949–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949string 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

Callers 2

OnMiscompareFunction · 0.85

Calls 3

RecursiveElementCountFunction · 0.85
shapeMethod · 0.45
ToStringMethod · 0.45

Tested by 1

OnMiscompareFunction · 0.68