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

what is the python version and torch version #1

Closed
pengzhangzhi opened this issue Apr 16, 2021 · 1 comment
Closed

what is the python version and torch version #1

pengzhangzhi opened this issue Apr 16, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@pengzhangzhi
Copy link

Traceback (most recent call last): File "main.py", line 251, in <module> main() File "main.py", line 105, in main patch_size=args.patch_size) File "C:\Users\彭张智computational AI\Desktop\Compact-Transformers-main\src\cct.py", line 326, in cct_7 *args, **kwargs) File "C:\Users\彭张智computational AI\Desktop\Compact-Transformers-main\src\cct.py", line 286, in _cct *args, **kwargs) File "C:\Users\彭张智computational AI\Desktop\Compact-Transformers-main\src\cct.py", line 267, in __init__ *args, **kwargs) File "C:\Users\彭张智computational AI\Desktop\Compact-Transformers-main\src\cct.py", line 98, in __init__ nn.init.trunc_normal_(self.positional_emb, std=0.2) AttributeError: module 'torch.nn.init' has no attribute 'trunc_normal_'

@alihassanijr
Copy link
Member

Please use torch==1.8.1

@alihassanijr alihassanijr added the help wanted Extra attention is needed label Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants