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

Method to_string

compiler/test/kernel/common/src/checker.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68std::string Index::to_string() const {
69 std::string res = "";
70 res.append("{");
71 res.append("array=");
72 res.append(m_array.to_string());
73 res.append(",linear=");
74 res.append(std::to_string(m_linear));
75 res.append(",offset=");
76 res.append(std::to_string(m_offset));
77 res.append("}");
78 return res;
79}
80static inline float diff(float x, float y) {
81 return x - y;
82}

Callers 12

gen_operande_stringFunction · 0.45
reduceAxisFromShapeFunction · 0.45
append_reshape_to_h2dMethod · 0.45
searchMethod · 0.45
tensor_strFunction · 0.45
tensor2TinyMatFunction · 0.45
execMethod · 0.45
TESTFunction · 0.45

Calls 1

to_stringFunction · 0.70

Tested by

no test coverage detected