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

Function print_py_shape

src/module.cpp:1345–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343}
1344
1345static void print_py_shape(std::ostream& os, const migraphx::shape& s)
1346{
1347 os << "migraphx.shape(type=" << to_json_string(s.type_string()) << ", lens=["
1348 << to_string_range(s.lens()) << "]";
1349 if(not s.standard())
1350 os << ", strides=[" << to_string_range(s.strides()) << "]";
1351 os << ")";
1352}
1353
1354static void print_cpp_shape(std::ostream& os, const migraphx::shape& s)
1355{

Callers 1

print_pyMethod · 0.85

Calls 5

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

Tested by

no test coverage detected