From 3ddb9ae7c0b9e351179387e530922252315900ad Mon Sep 17 00:00:00 2001 From: giuros01 Date: Mon, 21 Jan 2019 14:57:16 +0000 Subject: COMPMID-1898: (Nightly) Many CLGEMM tests fail Change-Id: Ie9086098acbbb2d561051f102700e64c9bea05b0 Reviewed-on: https://review.mlplatform.org/545 Reviewed-by: Michalis Spyrou Reviewed-by: Gian Marco Iodice Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- src/core/CL/kernels/CLGEMMLowpMatrixMultiplyKernel.cpp | 2 +- src/runtime/CL/functions/CLGEMMLowpMatrixMultiplyCore.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/CL/kernels/CLGEMMLowpMatrixMultiplyKernel.cpp b/src/core/CL/kernels/CLGEMMLowpMatrixMultiplyKernel.cpp index 2c072a8ba0..1a1a4b7c3d 100644 --- a/src/core/CL/kernels/CLGEMMLowpMatrixMultiplyKernel.cpp +++ b/src/core/CL/kernels/CLGEMMLowpMatrixMultiplyKernel.cpp @@ -89,7 +89,7 @@ Status validate_arguments(const ITensorInfo *input0, const ITensorInfo *input1, lhs_info.k0 = 4; lhs_info.v0 = mult_interleave4x4_height; lhs_info.interleave = true; - lhs_info.transpose = unroll_block; + lhs_info.transpose = !unroll_block; TensorShape tensor_shape0{ input0->tensor_shape() }; tensor_shape0.set(0, k); diff --git a/src/runtime/CL/functions/CLGEMMLowpMatrixMultiplyCore.cpp b/src/runtime/CL/functions/CLGEMMLowpMatrixMultiplyCore.cpp index edb3107173..4b72878b5f 100644 --- a/src/runtime/CL/functions/CLGEMMLowpMatrixMultiplyCore.cpp +++ b/src/runtime/CL/functions/CLGEMMLowpMatrixMultiplyCore.cpp @@ -132,7 +132,7 @@ void CLGEMMLowpMatrixMultiplyCore::configure(const ICLTensor *a, const ICLTensor lhs_info.k0 = 4; lhs_info.v0 = mult_interleave4x4_height; lhs_info.interleave = true; - lhs_info.transpose = unroll_block; + lhs_info.transpose = !unroll_block; // Check if we need to reshape the matrix A and matrix B _is_interleaved_transposed = is_interleaved_transposed(m, n, k, _reshape_b_only_on_first_run, gpu_target); @@ -268,7 +268,7 @@ Status CLGEMMLowpMatrixMultiplyCore::validate(const ITensorInfo *a, const ITenso lhs_info.k0 = 4; lhs_info.v0 = mult_interleave4x4_height; lhs_info.interleave = true; - lhs_info.transpose = unroll_block; + lhs_info.transpose = !unroll_block; bool reshape_matrices = is_interleaved_transposed(m, n, k, gemm_info.reshape_b_only_on_first_run(), CLScheduler::get().target()); -- cgit v1.2.1