diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2018-05-02 13:59:04 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:51:50 +0000 |
commit | 59631a174e1b5ef23bd3a0102f60b57c99502766 (patch) | |
tree | 5d8e15d7a3b65e5071db82e2937ee1808953823f /arm_compute/graph/nodes | |
parent | ef9e05978ab008e533cc76a8e6f10c9e86a880c1 (diff) | |
download | ComputeLibrary-59631a174e1b5ef23bd3a0102f60b57c99502766.tar.gz |
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 <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/graph/nodes')
-rw-r--r-- | arm_compute/graph/nodes/ConvolutionLayerNode.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arm_compute/graph/nodes/ConvolutionLayerNode.h b/arm_compute/graph/nodes/ConvolutionLayerNode.h index d1186a8eae..aca60283d7 100644 --- a/arm_compute/graph/nodes/ConvolutionLayerNode.h +++ b/arm_compute/graph/nodes/ConvolutionLayerNode.h @@ -38,9 +38,11 @@ public: * * @param[in] info Convolution layer attributes * @param[in] method (Optional) Convolution method to use + * @param[in] fast_math_hint (Optional) Fast math hint * @param[in] out_quant_info (Optional) Output quantization info */ - ConvolutionLayerNode(PadStrideInfo info, ConvolutionMethod method = ConvolutionMethod::DEFAULT, QuantizationInfo out_quant_info = QuantizationInfo()); + ConvolutionLayerNode(PadStrideInfo info, ConvolutionMethod method = ConvolutionMethod::DEFAULT, FastMathHint fast_math_hint = FastMathHint::DISABLED, + QuantizationInfo out_quant_info = QuantizationInfo()); /** Sets the convolution layer method to use * * @param[in] method Method to use for convolution @@ -51,9 +53,19 @@ public: * @note This is an indication on which convolution layer implementation to use, * if it fails to be created the library's heuristic approach will be used * - * @return Convolution layer method do be used by the node + * @return Convolution layer method to be used by the node */ ConvolutionMethod convolution_method() const; + /** Sets the fast math fast hint + * + * @param[in] hint Hint to use for convolution + */ + void set_fast_math_hint(FastMathHint hint); + /** Fast math hint accessor + * + * @return Fast math hint to be used by the node + */ + FastMathHint fast_math_hint() const; /** Convolution metadata accessor * * @return Convolution information @@ -80,6 +92,7 @@ public: private: PadStrideInfo _info; ConvolutionMethod _method; + FastMathHint _fast_math_hint; QuantizationInfo _out_quant_info; }; } // namespace graph |