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

Function getStaticModule

express/module/StaticModule.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace Express {
24
25static const StaticModule* getStaticModule(const Module* m) {
26 if (m->type() == "StaticModule") {
27 return static_cast<const StaticModule*>(m);
28 }
29 if (m->getChildren().empty()) {
30 return nullptr;
31 }
32 return getStaticModule(m->getChildren()[0].get());
33}
34
35static std::vector<std::shared_ptr<BufferStorage>> preRearrangeWeights( // NOLINT
36 Schedule::ScheduleInfo& scheduleInfo, Backend* firstbackend, Backend* backupBackend, const Module* base = nullptr) {

Callers 1

preRearrangeWeightsFunction · 0.85

Calls 3

typeMethod · 0.45
emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected