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

AttributeError: 'Attention' object has no attribute 'reduction' #3

Open
Arthur-Ling opened this issue Sep 20, 2023 · 1 comment
Open

Comments

@Arthur-Ling
Copy link

When I try to run the code, there is a problem in line 117 of test_quant.py "next_module = father_module.reduction". my shell is "python test_quant.py --model deit_small --dataset /root/data/Imagenet". Is there any problem with my shell?

@zkkli
Copy link
Owner

zkkli commented Sep 21, 2023

Hi,

There is no problem with your shell.

If your model is deit, you should access line112 ('norm1') or 114 ('norm2'). My suggestion is to check if the model is loaded correctly, or you can try to change the version of timm (my version is 0.4.12).

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