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

Method free

lite/example/cpp_example/mge/user_allocator.cpp:26–32  ·  view source on GitHub ↗

free the memory pointed by ptr in the given device

Source from the content-addressed store, hash-verified

24
25 //! free the memory pointed by ptr in the given device
26 void free(LiteDeviceType, int, void* ptr) override {
27#if defined(WIN32) || defined(_WIN32)
28 _aligned_free(ptr);
29#else
30 ::free(ptr);
31#endif
32 };
33};
34
35bool config_user_allocator(const Args& args) {

Callers

nothing calls this directly

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected