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

Function MNNMemoryFreeAlign

source/core/MNNMemoryUtils.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53extern "C" void MNNMemoryFreeAlign(void *aligned) {
54#ifdef MNN_DEBUG_MEMORY
55 free(aligned);
56#else
57 if (aligned) {
58 void *origin = ((void **)aligned)[-1];
59 free(origin);
60 }
61#endif
62}

Callers 12

~FileLoaderMethod · 0.85
readMethod · 0.85
onReleaseMethod · 0.85
ReadQuanData_cFunction · 0.85
ReadSparseQuanData_cFunction · 0.85
~TensorMethod · 0.85
~AutoStorageMethod · 0.85
setMethod · 0.85
resetMethod · 0.85
releaseMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by 1

runMethod · 0.68