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

Function perf_group

src/program.cpp:899–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899static std::string perf_group(instruction_ref ins, bool detailed)
900{
901 std::string result;
902 auto attr = ins->get_operator().attributes();
903 if(attr.contains("group"))
904 result = attr.at("group").to<std::string>();
905 else
906 result = ins->get_operator().name();
907 if(detailed)
908 {
909 result += "<" + ins->get_shape().type_string();
910 result += "(" + shape::to_sizes_string(to_shapes(ins->inputs())) + ")>";
911 }
912 return result;
913}
914
915void program::mark(const parameter_map& params, marker m)
916{

Callers 1

perf_reportMethod · 0.85

Calls 8

atMethod · 0.80
type_stringMethod · 0.80
to_shapesFunction · 0.70
attributesMethod · 0.45
containsMethod · 0.45
nameMethod · 0.45
get_shapeMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected