From 25801a7b063ac95d18437d52cd90139a5ae6f7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarek=20Ziad=C3=A9?= Date: Mon, 16 Dec 2024 08:46:15 +0100 Subject: [PATCH] display messages --- .../contrib_ops/cpu/quantization/firefox_matmul_integer.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/onnxruntime/contrib_ops/cpu/quantization/firefox_matmul_integer.cc b/onnxruntime/contrib_ops/cpu/quantization/firefox_matmul_integer.cc index 3a3b9612f69b4..4c156a0c8457b 100644 --- a/onnxruntime/contrib_ops/cpu/quantization/firefox_matmul_integer.cc +++ b/onnxruntime/contrib_ops/cpu/quantization/firefox_matmul_integer.cc @@ -93,15 +93,19 @@ void DisplayMatrixSample(const uint32_t* matrix, size_t rows, size_t cols, const } void CompareMatrices(const uint32_t* matrix1, const uint32_t* matrix2, size_t rows, size_t cols, const std::string& matrix1_name, const std::string& matrix2_name) { + std::cout << "Comparing " << matrix1_name << " and " << matrix2_name << "\n"; + for (size_t i = 0; i < rows; ++i) { for (size_t j = 0; j < cols; ++j) { if (matrix1[i * cols + j] != matrix2[i * cols + j]) { + std::cout << "Mismatch between " << matrix1_name << " and " << matrix2_name << " at row " << i << ", col " << j << "\n"; throw std::runtime_error( "Mismatch between " + matrix1_name + " and " + matrix2_name + " at row " + std::to_string(i) + ", col " + std::to_string(j)); } } } + std::cout << "Matrices match\n"; } Status FirefoxMatMulInteger8::Compute(OpKernelContext* ctx) const {