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

Method DebugString

tensorflow/core/framework/shape_inference.cc:335–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335string InferenceContext::DebugString(ShapeHandle s) {
336 if (RankKnown(s)) {
337 std::vector<string> vals;
338 for (auto d : s->dims_) vals.push_back(DebugString(d));
339 return strings::StrCat("[", absl::StrJoin(vals, ","), "]");
340 } else {
341 return "?";
342 }
343}
344
345string InferenceContext::DebugString(DimensionHandle d) {
346 return ValueKnown(d) ? strings::StrCat(Value(d)) : "?";

Callers 1

Calls 6

DebugStringFunction · 0.70
ValueClass · 0.70
ProtoDebugStringFunction · 0.70
DataTypeStringFunction · 0.70
StrCatFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected