aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Helpers.h
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2017-07-13 15:55:57 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit1fab09f36bdd1e5473bb019cf9639f4a92b4daa1 (patch)
tree62842028154146a193d08f5bc36af0c2fc39ab2b /arm_compute/core/Helpers.h
parent04f089cbcb4407e8d2883525edb661ba15ea922d (diff)
downloadComputeLibrary-1fab09f36bdd1e5473bb019cf9639f4a92b4daa1.tar.gz
COMPMID-424 Implemented reference implementation, new output valid region and validation tests (NEON and CL) for Scale
Change-Id: I056fa3588b807a97cacf0b8afaec56e37ffc92af Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83872 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/Helpers.h')
-rw-r--r--arm_compute/core/Helpers.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arm_compute/core/Helpers.h b/arm_compute/core/Helpers.h
index dfcca96eec..f3702e7c93 100644
--- a/arm_compute/core/Helpers.h
+++ b/arm_compute/core/Helpers.h
@@ -461,6 +461,17 @@ bool set_data_type_if_unknown(ITensorInfo &info, DataType data_type);
* @return True if the fixed point position has been changed.
*/
bool set_fixed_point_position_if_zero(ITensorInfo &info, int fixed_point_position);
+/** Helper function to calculate the Valid Region for Scale.
+ *
+ * @param[in] src_info Input tensor info used to check.
+ * @param[in] dst_shape Shape of the output.
+ * @param[in] policy Interpolation policy.
+ * @param[in] border_size Size of the border.
+ * @param[in] border_undefined True if the border is undefined.
+ *
+ * @return The corrispondent valid region
+ */
+ValidRegion calculate_valid_region_scale(const ITensorInfo &src_info, const TensorShape &dst_shape, InterpolationPolicy policy, BorderSize border_size, bool border_undefined);
} // namespace arm_compute
#include "arm_compute/core/Helpers.inl"