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

fix a minor bug in quantumnat.py #100

Merged
merged 1 commit into from
Mar 29, 2023
Merged

Conversation

caitaozhan
Copy link
Collaborator

@caitaozhan caitaozhan commented Mar 28, 2023

Hi Hanrui,

In the forward function, need to reset_states(bsz) for self.q_device. If not, the program will run into the following error:

RuntimeError: Expected size for first two dimensions of batch2 tensor to be: [256, 2] but got: [1, 2]

Thanks,
Caitao

@Hanrui-Wang
Copy link
Collaborator

Hi Caitao,

Thanks a lot for the contribution! merged!

@Hanrui-Wang Hanrui-Wang merged commit ac8e551 into mit-han-lab:main Mar 29, 2023
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

Successfully merging this pull request may close these issues.

2 participants