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

Run example of QuantumNAS with error "no nodule namsed 'torchquantum.super_layers'" #250

Open
Holmes-Alan opened this issue Mar 20, 2024 · 3 comments
Assignees

Comments

@Holmes-Alan
Copy link

I tried the example of QuantumNAS with the above error when running "from torchquantum.super_layers import super_layer_name_dict". I think that the super_layers is changed other place?

@01110011011101010110010001101111
Copy link
Collaborator

Hi, thanks for opening the issue! As mentioned in Slack, this is on my radar and should deep dive this by Saturday. Sorry about the inconvenience!

@Holmes-Alan
Copy link
Author

Thank you in advance!

@01110011011101010110010001101111
Copy link
Collaborator

01110011011101010110010001101111 commented Mar 24, 2024

So, like you mentioned, it looks like the location just changed. The quick fix is replacing the import with:

from torchquantum.algorithm.quantumnas.super_layers import super_layer_name_dict

But looking through the code, I think some other parts are outdated, am currently working on trying to get it up to date (then will PR the updates).

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

2 participants