diff options
Diffstat (limited to 'arm_compute/runtime')
-rw-r--r-- | arm_compute/runtime/IMemoryGroup.h | 8 | ||||
-rw-r--r-- | arm_compute/runtime/IRuntimeContext.h | 2 | ||||
-rw-r--r-- | arm_compute/runtime/ITransformWeights.h | 16 |
3 files changed, 14 insertions, 12 deletions
diff --git a/arm_compute/runtime/IMemoryGroup.h b/arm_compute/runtime/IMemoryGroup.h index 4736acb559..540af8ba69 100644 --- a/arm_compute/runtime/IMemoryGroup.h +++ b/arm_compute/runtime/IMemoryGroup.h @@ -91,14 +91,6 @@ public: { _memory_group.acquire(); } - /** Prevent instances of this class from being copied (As this class contains pointers) */ - MemoryGroupResourceScope(const MemoryGroupResourceScope &) = delete; - /** Default move constructor */ - MemoryGroupResourceScope(MemoryGroupResourceScope &&) = default; - /** Prevent instances of this class from being copied (As this class contains pointers) */ - MemoryGroupResourceScope &operator=(const MemoryGroupResourceScope &) = delete; - /** Default move assignment operator */ - MemoryGroupResourceScope &operator=(MemoryGroupResourceScope &&) = default; /** Destructor */ ~MemoryGroupResourceScope() { diff --git a/arm_compute/runtime/IRuntimeContext.h b/arm_compute/runtime/IRuntimeContext.h index f928085682..2bca6c7677 100644 --- a/arm_compute/runtime/IRuntimeContext.h +++ b/arm_compute/runtime/IRuntimeContext.h @@ -29,7 +29,7 @@ namespace arm_compute // Forward declarations class IScheduler; class IAssetManager; -class DeviceProperties; +struct DeviceProperties; /** Context interface */ class IRuntimeContext diff --git a/arm_compute/runtime/ITransformWeights.h b/arm_compute/runtime/ITransformWeights.h index 6376c30088..c41df18c92 100644 --- a/arm_compute/runtime/ITransformWeights.h +++ b/arm_compute/runtime/ITransformWeights.h @@ -65,9 +65,20 @@ public: /** Prevent instances of this class to be copied */ ITransformWeights &operator=(const ITransformWeights &) = delete; /** Allow instances of this class to be move constructed */ - ITransformWeights(ITransformWeights &&) = default; + ITransformWeights(ITransformWeights &&other) + { + *this = std::move(other); + } /** Allow instances of this class to be moved */ - ITransformWeights &operator=(ITransformWeights &&) = default; + ITransformWeights &operator=(ITransformWeights &&other) + { + if(this != &other) + { + _num_refcount = other._num_refcount.load(); + _reshape_run = other._reshape_run; + } + return *this; + } /** Get a pointer to the transformed weights * @@ -111,7 +122,6 @@ protected: std::atomic<int32_t> _num_refcount{ 0 }; bool _reshape_run{ false }; }; - } // arm_compute #endif /*__ARM_COMPUTE_ITRANSFORMWEIGHTS_H__ */
\ No newline at end of file |