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

Method GetInitBody

compiler/include/compiler/KernelGen/KernelGen.h:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 return GetInitSymbol(context) + GenCommonInitCall();
95 };
96 virtual std::string GetInitBody(TContext* context) const {
97 std::stringstream ss;
98 ss << GenCommonRet() << " " << GetInitSignature(context) << R"({
99 if (nr_out_weight){
100 *nr_out_weight = 0;
101 }
102 return TinyNN_SUCCESS;
103 })";
104 return ss.str();
105 };
106
107 //! workspace gen
108 virtual std::string GetWorkspaceSymbol(TContext* context) const {

Callers

nothing calls this directly

Calls 1

GenCommonRetFunction · 0.85

Tested by

no test coverage detected