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/TypePrinter.h | |
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/TypePrinter.h')
-rw-r--r-- | arm_compute/graph/TypePrinter.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arm_compute/graph/TypePrinter.h b/arm_compute/graph/TypePrinter.h index 0ecd57de9d..6babd3961d 100644 --- a/arm_compute/graph/TypePrinter.h +++ b/arm_compute/graph/TypePrinter.h @@ -295,6 +295,24 @@ inline ::std::ostream &operator<<(::std::ostream &os, const ConvolutionMethod &m return os; } +/** Formatted output of the FastMathHint type. */ +inline ::std::ostream &operator<<(::std::ostream &os, const FastMathHint &hint) +{ + switch(hint) + { + case FastMathHint::ENABLED: + os << "ENABLED"; + break; + case FastMathHint::DISABLED: + os << "DISABLED"; + break; + default: + ARM_COMPUTE_ERROR("NOT_SUPPORTED!"); + } + + return os; +} + /** Formatted output of the DepthwiseConvolutionMethod type. */ inline ::std::ostream &operator<<(::std::ostream &os, const DepthwiseConvolutionMethod &method) { |