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

Function to_string

compiler/test/kernel/common/src/cc_proxy.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 return res;
95}
96std::string to_string(Layout layout) {
97 std::stringstream ss;
98 ss << "[";
99 for (int i = 0; i < layout.nr_dim; ++i) {
100 ss << layout.dims[i] << "(" << layout.stride[i] << ")"
101 << ", ";
102 }
103 ss << "]";
104 return ss.str();
105}
106struct FreePtr {
107 void operator()(void* ptr) { free(ptr); }
108};

Callers 12

to_stringMethod · 0.70
input_shape_to_stringFunction · 0.70
proxy_kernelFunction · 0.70
IndexingMultiAxisVec>Method · 0.70
fill_operandsFunction · 0.70
get_attr_mapFunction · 0.50
gen_kenrelsMethod · 0.50
support_map_to_msgFunction · 0.50
runFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected