MCPcopy Create free account
hub / github.com/davisking/dlib / tensor_shape_to_string

Function tensor_shape_to_string

dlib/dnn/onnx.h:303–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 }
302
303 inline std::string tensor_shape_to_string(const std::vector<int64_t>& shape)
304 {
305 std::ostringstream sout;
306 sout << "[";
307 for (size_t i = 0; i < shape.size(); ++i)
308 {
309 if (i != 0)
310 sout << ",";
311 sout << shape[i];
312 }
313 sout << "]";
314 return sout.str();
315 }
316
317 inline size_t element_count(const std::vector<int64_t>& shape)
318 {

Callers 4

add_initializerMethod · 0.85
add_initializer_int64Method · 0.85
validate_concat_shapesFunction · 0.85
export_layerFunction · 0.85

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected