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

Function TupleShapeToString

tensorflow/compiler/xla/tools/driver.cc:182–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182std::string TupleShapeToString(TupleShape shape) {
183 std::ostringstream out;
184 if (shape.elements.size() == 1) {
185 return ArrayShapeToString(shape.elements[0]);
186 }
187 out << "(";
188 for (int idx = 0; idx < shape.elements.size(); idx++) {
189 out << ArrayShapeToString(shape.elements[idx]);
190 if (idx != shape.elements.size() - 1) {
191 out << ", ";
192 }
193 }
194 out << ")";
195 return out.str();
196}
197
198// Information about the buffer assignment.
199struct BufferAssignment {

Callers 3

BufferAssignmentToStringFunction · 0.85
ParseBufferAssignmentFunction · 0.85
mainFunction · 0.85

Calls 2

ArrayShapeToStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected