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

Method addInput

codegen/SourceModule.cpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return name;
30 }
31 std::string addInput(const Tensor* t) {
32 std::string name = "input_" + std::to_string(mInputIdx++);
33 mInputs.push_back(const_cast<Tensor*>(t));
34 mIOMap.insert(std::make_pair(t, name));
35 return name;
36 }
37 std::string addOutput(const Tensor* t) {
38 std::string name = "output_" + std::to_string(mOutputIdx++);
39 mIOMap.insert(std::make_pair(t, name));

Callers 6

removeListAppendFunction · 0.80
FuseListStackFunction · 0.80
FuseAsTensorFunction · 0.80
onAcquireMethod · 0.80
CreateNetworkFunction · 0.80
buildKernelMethod · 0.80

Calls 3

to_stringFunction · 0.50
push_backMethod · 0.45
insertMethod · 0.45

Tested by 1

CreateNetworkFunction · 0.64