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

Function StringifyShape

tensorflow/core/summary/summary_db_writer.cc:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88string StringifyShape(const TensorShape& shape) {
89 string result;
90 bool first = true;
91 for (const auto& dim : shape) {
92 if (first) {
93 first = false;
94 } else {
95 strings::StrAppend(&result, ",");
96 }
97 strings::StrAppend(&result, dim.size);
98 }
99 return result;
100}
101
102Status CheckSupportedType(const Tensor& t) {
103#define CASE(T) \

Callers 8

CheckIsTokenOperandMethod · 0.85
HandleOutfeedMethod · 0.85
HandleSortMethod · 0.85
HandleWhileMethod · 0.85
HandleCopyDoneMethod · 0.85
CheckShapeMethod · 0.85
UpdateMethod · 0.85

Calls 1

StrAppendFunction · 0.50

Tested by

no test coverage detected