MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / megdnn_malloc

Method megdnn_malloc

dnn/test/common/utils.cpp:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void* test::megdnn_malloc(Handle* handle, size_t size_in_bytes) {
89 auto mm = MemoryManagerHolder::instance()->get(handle);
90 return mm->malloc(size_in_bytes);
91}
92
93void test::megdnn_free(Handle* handle, void* ptr) {
94 auto mm = MemoryManagerHolder::instance()->get(handle);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
mallocMethod · 0.45

Tested by

no test coverage detected