MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / print_cpp_shape

Function print_cpp_shape

src/module.cpp:1354–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1352}
1353
1354static void print_cpp_shape(std::ostream& os, const migraphx::shape& s)
1355{
1356 os << "migraphx::shape{migraphx::shape::" << s.type_string();
1357 os << ", {" << to_string_range(s.lens()) << "}";
1358 if(not s.standard())
1359 os << ", {" << to_string_range(s.strides()) << "}";
1360 os << "}";
1361}
1362
1363std::unordered_map<instruction_ref, std::string>
1364module::print_py(std::ostream& os,

Callers 1

print_cppMethod · 0.85

Calls 4

to_string_rangeFunction · 0.85
type_stringMethod · 0.80
lensMethod · 0.80
standardMethod · 0.45

Tested by

no test coverage detected