diff options
author | Ramy Elgammal <ramy.elgammal@arm.com> | 2023-03-24 11:42:03 +0000 |
---|---|---|
committer | Ramy Elgammal <ramy.elgammal@arm.com> | 2023-04-03 14:57:16 +0000 |
commit | f26ea2f8cc957a1e6faf0361dea805fb2e236061 (patch) | |
tree | ed8acee5615236a1638445d3743230ea7a59c8f5 /utils | |
parent | fff9a4cb56d3d3dbfe85db555eea4bc9b3143996 (diff) | |
download | ComputeLibrary-f26ea2f8cc957a1e6faf0361dea805fb2e236061.tar.gz |
Implement MatMul Function
Resolves: COMPMID-5949
Signed-off-by: Ramy Elgammal <ramy.elgammal@arm.com>
Change-Id: Idd8cfe6ea94a14f0b23178f6781251b5f0955563
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9390
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TypePrinter.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index c3af0a2419..9b9c7b5b34 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -3678,6 +3678,35 @@ inline std::string to_string(const experimental::dynamic_fusion::SoftmaxAttribut str << softmax_attr; return str.str(); } +/** Formatted output of the arm_compute::MatMulInfo type. + * + * @param[out] os Output stream. + * @param[in] matmul_info arm_compute::MatMulInfo type to output. + * + * @return Modified output stream. + */ +inline ::std::ostream &operator<<(::std::ostream &os, const arm_compute::MatMulInfo &matmul_info) +{ + os << "MatMulKernelInfo=" + << "[" + << "adj_lhs=" << matmul_info.adj_lhs() << ", " + << "adj_rhs=" << matmul_info.adj_rhs() << ", " + << "fused_activation=" << matmul_info.fused_activation().activation() << "]"; + + return os; +} +/** Formatted output of the arm_compute::MatMulInfo type. + * + * @param[in] matmul_info arm_compute::MatMulInfo type to output. + * + * @return Formatted string. + */ +inline std::string to_string(const arm_compute::MatMulInfo &matmul_info) +{ + std::stringstream str; + str << matmul_info; + return str.str(); +} /** Formatted output of the arm_compute::MatMulKernelInfo type. * |