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

Function PrintOneElement

tensorflow/core/framework/tensor.cc:1060–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058 return a;
1059}
1060inline string PrintOneElement(const tstring& a, bool print_v2) {
1061 if (print_v2) {
1062 return "\"" + absl::CEscape(a) + "\"";
1063 } else {
1064 return absl::CEscape(a);
1065 }
1066}
1067inline float PrintOneElement(const Eigen::half& h, bool print_v2) {
1068 return static_cast<float>(h);
1069}

Callers 3

PrintOneDimFunction · 0.85
PrintOneDimV2Function · 0.85
SummarizeArrayFunction · 0.85

Calls 1

CEscapeFunction · 0.85

Tested by

no test coverage detected