aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/ITransformWeights.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-30 13:25:53 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-30 14:13:55 +0000
commit879d1313ba69d9ced8424f54ffeea6a3c60496f0 (patch)
tree6e6f4be4b9ec992a019aa4d079c844a9649ef8ed /arm_compute/runtime/ITransformWeights.h
parentea80348ef330bd6415ec6dae45b99873710f812a (diff)
downloadComputeLibrary-879d1313ba69d9ced8424f54ffeea6a3c60496f0.tar.gz
COMPMID-2452: Fix compilation issues on armclang
Change-Id: I41bd60760270a2c7d83e391fd9430b4513ab00bc Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/2002 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime/ITransformWeights.h')
-rw-r--r--arm_compute/runtime/ITransformWeights.h16
1 files changed, 13 insertions, 3 deletions
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