diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/CustomMemoryAllocatorSample.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/CustomMemoryAllocatorSample.cpp b/samples/CustomMemoryAllocatorSample.cpp index a21158b251..171d8e2b5d 100644 --- a/samples/CustomMemoryAllocatorSample.cpp +++ b/samples/CustomMemoryAllocatorSample.cpp @@ -35,6 +35,16 @@ public: } return allocatedMemPtr; } + + void free(void* ptr) override + { + std::free(ptr); + } + + armnn::MemorySource GetMemorySourceType() override + { + return armnn::MemorySource::Malloc; + } }; |