Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error message (says in_features, should be out_features) #8

Open
ejohb opened this issue Sep 19, 2020 · 3 comments
Open

Incorrect error message (says in_features, should be out_features) #8

ejohb opened this issue Sep 19, 2020 · 3 comments

Comments

@ejohb
Copy link

ejohb commented Sep 19, 2020

raise Exception(f"BlockSparseLinear invalid in_features={in_features}, should be multiple of {self.BLOCK_SIZE}")

@DanqingZ
Copy link

It looks like there is an requirement that the any dimension should be a multiply of the block size (32). Can we relax this requirement?

@ejohb
Copy link
Author

ejohb commented Nov 11, 2020

It looks like there is an requirement that the any dimension should be a multiply of the block size (32). Can we relax this requirement?

Yeah, or auto-zero-pad the input to the closest multiple.

@khalidpandit
Copy link

@ejohb how to relax this requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants