diff options
Diffstat (limited to 'runtime/onert/backend/acl_common/AclMemoryManager.h')
-rw-r--r-- | runtime/onert/backend/acl_common/AclMemoryManager.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/runtime/onert/backend/acl_common/AclMemoryManager.h b/runtime/onert/backend/acl_common/AclMemoryManager.h index eefcec130..8e6bdd86a 100644 --- a/runtime/onert/backend/acl_common/AclMemoryManager.h +++ b/runtime/onert/backend/acl_common/AclMemoryManager.h @@ -21,7 +21,6 @@ #include <arm_compute/runtime/IMemoryManager.h> #include <cassert> -#include "backend/IMemoryManager.h" #include "ir/OperandIndexMap.h" #include "Convert.h" #include "util/logging.h" @@ -33,8 +32,7 @@ namespace backend namespace acl_common { -template <typename T_ITensor, typename T_Tensor, typename T_SubTensor> -class AclMemoryManager : public backend::IMemoryManager +template <typename T_ITensor, typename T_Tensor, typename T_SubTensor> class AclMemoryManager { public: AclMemoryManager() @@ -44,7 +42,7 @@ public: virtual ~AclMemoryManager() = default; - void allocate(void) override + virtual void allocate(void) { for (const auto &tensor_entry : _tensors) { @@ -53,7 +51,7 @@ public: } } - void deallocate(void) override + virtual void deallocate(void) { for (const auto &tensor_entry : _tensors) { @@ -62,8 +60,12 @@ public: } } - virtual void startLifetime(const ir::OperandIndex &) { /* DO NOTHING */} - virtual void finishLifetime(const ir::OperandIndex &) { /* DO NOTHING */} + virtual void startLifetime(const ir::OperandIndex &) + { /* DO NOTHING */ + } + virtual void finishLifetime(const ir::OperandIndex &) + { /* DO NOTHING */ + } void buildTensor(const ir::OperandIndex &ind, const ::arm_compute::TensorInfo &info, size_t rank, size_t num_uses) @@ -78,7 +80,7 @@ public: bool extent_parent) { auto subtensor = - std::make_shared<T_SubTensor>(parent_tensor.get(), shape, coordinates, rank, extent_parent); + std::make_shared<T_SubTensor>(parent_tensor.get(), shape, coordinates, rank, extent_parent); _subtensors[child_ind] = subtensor; } |