Skip to content

Commit 79e6b58

Browse files
authored
K1 was equal K
1 parent 2128de3 commit 79e6b58

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

models/tools/GEMM.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33

44
%% Check matrix multiplication compatibility
5-
[M, K1] = size(A);
5+
[M, K] = size(A);
66
[K2, N] = size(B);
77

8-
if K1 ~= K2
8+
if K ~= K2
99
error('Matrix dimensions are not compatible for multiplication: A is %dx%d, B is %dx%d.', M, K1, K2, N);
1010
end
1111
if isempty(C) | ~exist('C','var')
@@ -124,7 +124,6 @@
124124
% Flatten/reshape A to row vector and compute K
125125
% ---------------------------------------------------------
126126
a = reshape(A(1, :), 1, []);
127-
K = numel(a); % Number of elements
128127
remainder = mod(K, nfma); % Distance from next multiple of nfma
129128
if remainder~=0
130129
pad_size = nfma - remainder;

0 commit comments

Comments
 (0)