MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / shape_to_string

Function shape_to_string

tests/test_metal_python_ref_compare.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32static std::string shape_to_string(const std::vector<int> & shape) {
33 std::string s;
34 for (size_t i = 0; i < shape.size(); ++i) {
35 if (i > 0) s += "x";
36 s += std::to_string(shape[i]);
37 }
38 return s;
39}
40
41static metric_row compute_metrics(const std::string & tensor,
42 const float * got,

Callers 4

compute_metricsFunction · 0.85
compare_state_nhwcFunction · 0.85
compare_state_nchwFunction · 0.85
compare_dump_directFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected