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

Method gc

express/Executor.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void Executor::gc(GCFlag flag) {
85 int level = flag == FULL ? 100 : 0;
86 for (auto& iter : mRuntimeInfo.first) {
87 iter.second->onGabageCollect(level);
88 }
89}
90
91Executor::Executor(std::shared_ptr<Runtime> runtime, MNNForwardType type, int numberThread) {
92 mRuntimeInfo.first.insert(std::make_pair(type, runtime));

Callers 15

_quantizeModelEMAMethod · 0.80
endOptimizeMethod · 0.80
onExecuteMethod · 0.80
trainMethod · 0.80
trainMethod · 0.80
ProcessMethod · 0.80
ProcessMethod · 0.80
ProcessMethod · 0.80
runMethod · 0.80
runVideoMethod · 0.80
loadModuleMethod · 0.80
encode_promptMethod · 0.80

Calls 1

onGabageCollectMethod · 0.45

Tested by 2

runAllMethod · 0.64
_runMethod · 0.64