MCPcopy Create free account
hub / github.com/alibaba/MNN / hasVar

Method hasVar

codegen/SourceModule.cpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21public:
22 VarScope() {}
23 bool hasVar(const Tensor* t) {
24 return mVarMap.find(t) != mVarMap.end();
25 }
26 std::string addVar(const Tensor* t) {
27 std::string name = "var_" + std::to_string(mVarIdx++);
28 mVarMap.insert(std::make_pair(t, name));

Callers 1

buildKernelMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected