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: module 'torch.nn.functional' has no attribute '_pad' #5

Open
Pavankunchala opened this issue Nov 23, 2022 · 4 comments

Comments

@Pavankunchala
Copy link

I am getting this error, when i am trying running the code

@omerbt
Copy link
Owner

omerbt commented Nov 24, 2022

Hi, what torch version are you using? it shouldn't happen with the versions specified in the requirements file, but you can also try to comment out this line.

@justLV
Copy link

justLV commented Jan 29, 2023

I had this issue too after upgrading torch, as the version specified in the requirements file throws the following error for a 3090:

NVIDIA GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70.

Commenting out the line you mentioned fixed it though.

@SamSamhuns
Copy link

I've had the same issue with torch==0.10.0. Had to use the latest version of torch and commented out the mentioned line with the pad assignment.

@Zakharyan9889
Copy link

change this pad = F._pad to pad = F.pad in auxilary.py

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

5 participants