MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / to_string

Method to_string

imperative/src/impl/op_def.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97std::string OpDef::to_string() const {
98 std::string builder = trait()->name;
99 builder += "{";
100 for (auto&& [name, value] : props(*this)) {
101 builder += name;
102 builder += ": ";
103 builder += value;
104 builder += ",";
105 }
106 return builder + "}";
107}
108
109std::string OpDef::name() const {
110 return trait()->name;

Callers 1

reprMethod · 0.45

Calls 1

propsFunction · 0.50

Tested by

no test coverage detected