diff options
author | Alex Gilday <alexander.gilday@arm.com> | 2018-03-05 16:22:48 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:16 +0000 |
commit | 60954c671ffdc3422bbdb728fc022eb6896c1e17 (patch) | |
tree | 67f57a6683562bf6611d46cfc409edf32e891ac7 /arm_compute/core/utils/misc/ShapeCalculator.h | |
parent | f47bfb97fa8bc928a7860b84b7b227f716f65e58 (diff) | |
download | ComputeLibrary-60954c671ffdc3422bbdb728fc022eb6896c1e17.tar.gz |
COMPMID-754: Add validation to (De)QuantizationLayers
Change-Id: If8fa1277e8dc5b8e28a8bcad4ff9fc672b00ce9a
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/123275
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'arm_compute/core/utils/misc/ShapeCalculator.h')
-rw-r--r-- | arm_compute/core/utils/misc/ShapeCalculator.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arm_compute/core/utils/misc/ShapeCalculator.h b/arm_compute/core/utils/misc/ShapeCalculator.h index 9cb8023463..1e90927a93 100644 --- a/arm_compute/core/utils/misc/ShapeCalculator.h +++ b/arm_compute/core/utils/misc/ShapeCalculator.h @@ -249,6 +249,17 @@ inline TensorShape compute_deep_convolution_shape(const ITensorInfo &input, cons return output_shape; } + +inline TensorShape compute_min_max_shape(const ITensorInfo *input) +{ + TensorShape output_shape{ input->tensor_shape() }; + output_shape.set(Window::DimX, 2); + output_shape.remove_dimension(1); + output_shape.remove_dimension(1); + + return output_shape; +} + } // namespace shape_calculator } // namespace misc } // namespace arm_compute |