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

Function SummarizeTensor

tensorflow/core/framework/attr_value_util.cc:208–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208string SummarizeTensor(const TensorProto& tensor_proto) {
209 Tensor t;
210 if (!t.FromProto(tensor_proto)) {
211 return strings::StrCat(
212 "<Invalid TensorProto: ", ProtoShortDebugString(tensor_proto), ">");
213 }
214 return t.DebugString();
215}
216
217string SummarizeFunc(const NameAttrList& func) {
218 std::vector<string> entries;

Callers 1

SummarizeAttrValueFunction · 0.85

Calls 3

StrCatFunction · 0.50
FromProtoMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected