aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Size3D.h
diff options
context:
space:
mode:
authorFreddie Liardet <frederick.liardet@arm.com>2021-10-26 14:06:47 +0100
committerFreddie Liardet <frederick.liardet@arm.com>2021-10-27 12:24:45 +0000
commit69df64fc340215b8ce71d30105eb681811f5e0c3 (patch)
tree1a42c57e905e7d6adceaa9720e2ea039fc79dc45 /arm_compute/core/Size3D.h
parentf727ef49e2109bdac105dd6575d2e336adf780a3 (diff)
downloadComputeLibrary-69df64fc340215b8ce71d30105eb681811f5e0c3.tar.gz
Improve conv3d validation
Improve validation of cpu conv3d and add validation test. Align Size3D to Size3D comparison with how Size2D implements it. Remove print statement in MaxUnpooling validation tests. Signed-off-by: Freddie Liardet <frederick.liardet@arm.com> Change-Id: I17048d56b08704cdbf1ad978af02009e57f3aa83 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6512 Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/Size3D.h')
-rw-r--r--arm_compute/core/Size3D.h28
1 files changed, 10 insertions, 18 deletions
diff --git a/arm_compute/core/Size3D.h b/arm_compute/core/Size3D.h
index 1d8febe3ce..148bd17919 100644
--- a/arm_compute/core/Size3D.h
+++ b/arm_compute/core/Size3D.h
@@ -78,29 +78,21 @@ public:
return depth;
}
+ bool operator!=(const Size3D &other) const
+ {
+ return !(*this == other);
+ }
+
+ bool operator==(const Size3D &other) const
+ {
+ return (width == other.width) && (height == other.height) && (depth == other.depth);
+ }
+
public:
size_t width = {}; /**< Width of the 3D shape or object */
size_t height = {}; /**< Height of the 3D shape or object */
size_t depth = {}; /**< Depth of the 3D shape or object */
};
-/** Operator to compare two Size3D objects to be equal
- *
- * @param[in] lhs Left-hand side Size3D object.
- * @param[in] rhs Right-hand side Size3D object.
- *
- * @return True if two instances have the same width, height and depth
- */
-bool operator==(const Size3D &lhs, const Size3D &rhs);
-
-/** Operator to compare two Size3D objects to be different
- *
- * @param[in] lhs Left-hand side Size3D object.
- * @param[in] rhs Right-hand side Size3D object.
- *
- * @return True if two instances have a difference in width, height or depth
- */
-bool operator!=(const Size3D &lhs, const Size3D &rhs);
-
} // namespace arm_compute
#endif /* ARM_COMPUTE_SIZE3D_H */