Skip to content

Commit

Permalink
Merge pull request #13 from fxmarty/fix-check-shapes
Browse files Browse the repository at this point in the history
Fix shape check
  • Loading branch information
efrantar authored Feb 19, 2024
2 parents 3aa5a05 + ca3de38 commit 512f1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marlin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, infeatures, outfeatures, groupsize=-1):
super().__init__()
if groupsize not in [-1, 128]:
raise ValueError('Only groupsize -1 and 128 are supported.')
if infeatures % 128 != 0 or outfeatures != 256 == 0:
if infeatures % 128 != 0 or outfeatures % 256 != 0:
raise ValueError('`infeatures` must be divisible by 128 and `outfeatures` by 256.')
if groupsize == -1:
groupsize = infeatures
Expand Down

0 comments on commit 512f1b1

Please sign in to comment.