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

Function format_shape_name

src/graphviz.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::string format_shape_name(const migraphx::shape& s, const std::string& linebreak)
57{
58 if(s.sub_shapes().empty())
59 {
60 if(s.dynamic())
61 {
62 return "dynamic" + linebreak + s.type_string() + linebreak + "{" +
63 to_string_range(s.dyn_dims()) + "}";
64 }
65 return s.type_string() + linebreak + "{" + to_string_range(s.lens()) + "}, {" +
66 to_string_range(s.strides()) + "}";
67 }
68 return "[" + to_string_range(s.sub_shapes()) + "]";
69}
70
71std::string build_html_label(const graphviz_node_content& content)
72{

Callers 2

print_graphMethod · 0.85
get_node_contentFunction · 0.85

Calls 5

to_string_rangeFunction · 0.85
dynamicMethod · 0.80
type_stringMethod · 0.80
lensMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected