diff options
author | Jakub Sujak <jakub.sujak@arm.com> | 2022-12-02 16:09:06 +0000 |
---|---|---|
committer | Gunes Bayir <gunes.bayir@arm.com> | 2022-12-28 11:01:09 +0000 |
commit | 8ae571454792327fc40641c72fe0b8de1e7d334f (patch) | |
tree | 928028fa30d52a87413db16ed3abc4044bf07eec /utils/TypePrinter.h | |
parent | 8468371b3e2ec42ee0b9b670d45d99eb1015574b (diff) | |
download | ComputeLibrary-8ae571454792327fc40641c72fe0b8de1e7d334f.tar.gz |
Add Resize/Scale operator to Dynamic Fusion interface
Resolves: COMPMID-5521
Change-Id: Id38a4ce18f9ea8805a151acb064e72795535d1a0
Signed-off-by: Jakub Sujak <jakub.sujak@arm.com>
Signed-off-by: Gunes Bayir <gunes.bayir@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8859
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index d4265bfdbd..d056bfbcf4 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -42,6 +42,7 @@ #include "arm_compute/dynamic_fusion/sketch/attributes/CastAttributes.h" #include "arm_compute/dynamic_fusion/sketch/attributes/ClampAttributes.h" #include "arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h" +#include "arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h" #include "arm_compute/runtime/CL/CLTunerTypes.h" #include "arm_compute/runtime/CL/CLTypes.h" #include "arm_compute/runtime/FunctionDescriptors.h" @@ -3524,6 +3525,38 @@ inline std::string to_string(const experimental::dynamic_fusion::ClampAttributes return str.str(); } +/** Formatted output of the arm_compute::experimental::dynamic_fusion::ResizeAttributes type. + * + * @param[out] os Output stream. + * @param[in] resize_attr arm_compute::experimental::dynamic_fusion::ResizeAttributes type to output. + * + * @return Modified output stream. + */ +inline ::std::ostream &operator<<(::std::ostream &os, const experimental::dynamic_fusion::ResizeAttributes &resize_attr) +{ + os << "ResizeAttributes=" + << "[" + << "AlignCorners=" << resize_attr.align_corners() << ", " + << "InterpolationPolicy=" << resize_attr.interpolation_policy() << ", " + << "OutputHeight=" << resize_attr.output_height() << ", " + << "OutputWidth=" << resize_attr.output_width() << ", " + << "SamplingPolicy=" << resize_attr.sampling_policy() << "]"; + return os; +} + +/** Formatted output of the arm_compute::experimental::dynamic_fusion::ResizeAttributes type. + * + * @param[in] resize_attr arm_compute::experimental::dynamic_fusion::ResizeAttributes type to output. + * + * @return Formatted string. + */ +inline std::string to_string(const experimental::dynamic_fusion::ResizeAttributes &resize_attr) +{ + std::stringstream str; + str << resize_attr; + return str.str(); +} + } // namespace arm_compute #endif /* __ARM_COMPUTE_TYPE_PRINTER_H__ */ |