From caa7deedfe1b0d0020c6099d8f616ec92b1bd5e9 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 9 Sep 2019 19:23:39 +0100 Subject: COMPMID-2641 [NEON] Create a test case for dynamic tensor support Change-Id: I181e9acffd34ff1c807c65a822cfafb7327b8c8a Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/1913 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/runtime/OffsetMemoryPool.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/runtime/OffsetMemoryPool.cpp') diff --git a/src/runtime/OffsetMemoryPool.cpp b/src/runtime/OffsetMemoryPool.cpp index 70cbe90bf0..a335f6087a 100644 --- a/src/runtime/OffsetMemoryPool.cpp +++ b/src/runtime/OffsetMemoryPool.cpp @@ -32,8 +32,8 @@ #include "arm_compute/runtime/Types.h" #include "support/ToolchainSupport.h" -using namespace arm_compute; - +namespace arm_compute +{ OffsetMemoryPool::OffsetMemoryPool(IAllocator *allocator, BlobInfo blob_info) : _allocator(allocator), _blob(), _blob_info(blob_info) { @@ -41,6 +41,11 @@ OffsetMemoryPool::OffsetMemoryPool(IAllocator *allocator, BlobInfo blob_info) _blob = _allocator->make_region(blob_info.size, blob_info.alignment); } +const BlobInfo &OffsetMemoryPool::info() const +{ + return _blob_info; +} + void OffsetMemoryPool::acquire(MemoryMappings &handles) { ARM_COMPUTE_ERROR_ON(_blob == nullptr); @@ -71,4 +76,5 @@ std::unique_ptr OffsetMemoryPool::duplicate() { ARM_COMPUTE_ERROR_ON(!_allocator); return support::cpp14::make_unique(_allocator, _blob_info); -} \ No newline at end of file +} +} // namespace arm_compute \ No newline at end of file -- cgit v1.2.1