From 553f6953fe3bdfad53c11c25f305a16d79d83b24 Mon Sep 17 00:00:00 2001 From: Francesco Petrogalli Date: Thu, 30 Jun 2022 10:22:01 +0000 Subject: [ONCPUML-951] Variable weight support for Convolution. API changes for NEGEMMConvolutionLayer and CpuGemmConv2d Built with: scons neon=1 opencl=0 os=linux arch=armv8.2-a multi_isa=1 \ build=native -j32 Werror=false validation_tests=1 build_dir=opt \ standalone=1 asserts=1 experimental_fixed_format_kernels=1 . Tested with: ./build/opt/tests/arm_compute_validation Hardware where the test executable was run: Neoverse N1 Test coverage: * NEGEMMConvolutionLayer, CpuGemmConv2d * NHWC (the only one supported by the fixed-format kernels) * F16, F32 * Shapes: RunSmall Change-Id: I4fd3e495a7cbf61210ea02d37440ba9652934e99 Signed-off-by: Francesco Petrogalli Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7632 Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- utils/TypePrinter.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 31eff57e6b..a41b3cc9ae 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -3242,6 +3242,30 @@ inline std::string to_string(const Conv3dInfo &conv3d_info) return str.str(); } +inline ::std::ostream &operator<<(::std::ostream &os, const arm_gemm::WeightFormat &wf) +{ + os << arm_gemm::to_string(wf); + return os; +} +inline std::string to_string(const arm_gemm::WeightFormat wf) +{ + std::stringstream str; + str << wf; + return str.str(); +} + +inline std::string to_string(const std::tuple values) +{ + std::stringstream str; + str << "[Input shape = " << std::get<0>(values); + str << ", "; + str << "Expected output shape = " << std::get<1>(values); + + str << ", "; + str << "WeightFormat = " << std::get<2>(values) << "]"; + return str.str(); +} + } // namespace arm_compute #endif /* __ARM_COMPUTE_TYPE_PRINTER_H__ */ -- cgit v1.2.1