From 59631a174e1b5ef23bd3a0102f60b57c99502766 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Wed, 2 May 2018 13:59:04 +0100 Subject: COMPMID-1104 Add fast math hint in the graph API Change-Id: I83db135fa94c6884e080f0229a9b6430d908c029 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129823 Tested-by: Jenkins Reviewed-by: Gian Marco Iodice Reviewed-by: Anthony Barbier --- arm_compute/graph/backends/ValidateHelpers.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arm_compute/graph/backends/ValidateHelpers.h') diff --git a/arm_compute/graph/backends/ValidateHelpers.h b/arm_compute/graph/backends/ValidateHelpers.h index c203e8c885..db3f8ba4f9 100644 --- a/arm_compute/graph/backends/ValidateHelpers.h +++ b/arm_compute/graph/backends/ValidateHelpers.h @@ -83,6 +83,7 @@ Status validate_convolution_layer(ConvolutionLayerNode &node) const PadStrideInfo conv_info = node.convolution_info(); const ConvolutionMethod conv_algorithm = node.convolution_method(); + //const bool fast_math = node.fast_math_hint() == FastMathHint::ENABLED; // FIXME (COMPMID-1138): uncomment once NEON and GLES support fast_math // Validate function Status status{}; @@ -95,7 +96,7 @@ Status validate_convolution_layer(ConvolutionLayerNode &node) status = GEMMConvolutionLayer::validate(input, weights, biases, output, conv_info); break; case ConvolutionMethod::WINOGRAD: - status = WinogradConvolutionLayer::validate(input, weights, biases, output, conv_info); + status = WinogradConvolutionLayer::validate(input, weights, biases, output, conv_info /*, fast_math*/); break; case ConvolutionMethod::DEFAULT: status = ConvolutionLayer::validate(input, weights, biases, output, conv_info); @@ -107,7 +108,7 @@ Status validate_convolution_layer(ConvolutionLayerNode &node) // If validation fails try the Default approach if(!bool(status)) { - status = ConvolutionLayer::validate(input, weights, biases, output, conv_info); + status = ConvolutionLayer::validate(input, weights, biases, output, conv_info /*, fast_math*/); if(bool(status)) { ARM_COMPUTE_LOG_GRAPH_INFO("Switched ConvolutionLayer method of node with ID : " -- cgit v1.2.1