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

Function isMetalRuntime

test/expr/StaticModuleOutputReuseTest.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static bool isMetalRuntime() {
57 auto rtInfo = Express::ExecutorScope::Current()->getRuntime();
58 if (rtInfo.first.empty()) {
59 return false;
60 }
61 return rtInfo.first.begin()->first == MNN_FORWARD_METAL;
62}
63
64class StaticModuleOutputReuseTest : public MNNTestCase {
65public:

Callers 1

runMethod · 0.85

Calls 3

getRuntimeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected