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/CL/CLTensorAllocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/CL/CLTensorAllocator.cpp') diff --git a/src/runtime/CL/CLTensorAllocator.cpp b/src/runtime/CL/CLTensorAllocator.cpp index 51caf69297..72b5854c5c 100644 --- a/src/runtime/CL/CLTensorAllocator.cpp +++ b/src/runtime/CL/CLTensorAllocator.cpp @@ -181,7 +181,7 @@ Status CLTensorAllocator::import_memory(cl::Buffer buffer) void CLTensorAllocator::set_associated_memory_group(CLMemoryGroup *associated_memory_group) { ARM_COMPUTE_ERROR_ON(associated_memory_group == nullptr); - ARM_COMPUTE_ERROR_ON(_associated_memory_group != nullptr); + ARM_COMPUTE_ERROR_ON(_associated_memory_group != nullptr && _associated_memory_group != associated_memory_group); ARM_COMPUTE_ERROR_ON(_memory.region() != nullptr && _memory.cl_region()->cl_data().get() != nullptr); _associated_memory_group = associated_memory_group; -- cgit v1.2.1