From 35ceeb2199c569810a1524a0a21c2df2a3f5f29e Mon Sep 17 00:00:00 2001 From: Diego Lopez Recas Date: Mon, 4 Dec 2017 18:56:10 +0000 Subject: IVGCVSW-798 Add Softmax NEON support for QASYMM8 Change-Id: I4f2cca52caf210fdb7d6bb7e9436ac51cb5088b4 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/112398 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- arm_compute/core/Types.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arm_compute/core/Types.h') diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index 5197000bf9..aa415acebe 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -190,6 +190,21 @@ struct ValidRegion return anchor[d] + shape[d]; } + /** Accessor to set the value of anchor and shape for one of the dimensions. + * + * @param[in] dimension Dimension for which the value is set. + * @param[in] start Value to be set in anchor for the dimension. + * @param[in] size Value to be set in shape for the dimension. + * + * @return *this. + */ + ValidRegion &set(size_t dimension, int start, size_t size) + { + anchor.set(dimension, start); + shape.set(dimension, size); + return *this; + } + Coordinates anchor; TensorShape shape; }; -- cgit v1.2.1