Skip to content

Commit e948ed1

Browse files
committed
Fix asserts
1 parent b44a587 commit e948ed1

File tree

1 file changed

+2
-2
lines changed
  • tensorforge/backend/instructions/compute/primitives

1 file changed

+2
-2
lines changed

tensorforge/backend/instructions/compute/primitives/amd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ def write_matmul(block, start, cap):
495495
kkm = ((trueK % threads) // block)
496496
kkkm = trueK % block
497497

498-
assert km == k
499-
assert kkm == kk
498+
assert km == k // threads
499+
assert kkm == kk // block
500500
assert kkkm == kkk
501501
# the index for tmpB is correct
502502
writer(f'{tmpacc} = {fn}({tmpA}_{km}_{kkkm}, {tmpB}_{kkk}, {tmpacc}, {scale}, {kkm}, 0);')

0 commit comments

Comments
 (0)