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

'GELU' object has no attribute 'approximate' #1

Open
Sarthak2426 opened this issue Jul 18, 2023 · 3 comments
Open

'GELU' object has no attribute 'approximate' #1

Sarthak2426 opened this issue Jul 18, 2023 · 3 comments

Comments

@Sarthak2426
Copy link

i have followed the steps but its showing me this error 'GELU' object has no attribute 'approximate'

@chengshuxiao
Copy link
Owner

i have followed the steps but its showing me this error 'GELU' object has no attribute 'approximate'

You could try to switch your pytorch version to "1.11.0".

@ChuykoMihail
Copy link

Hello. Unfortunately, I need the latest version of torch for other functions in my project. Also version 1.11.0 is not available for download with pip and requires reinstallation of other libraries in my project. Is there anything else i could do? I didnt find good answer on the internet.
I did remove 'approximate' argument from venv/lib/python3.11/site-packages/torch/nn/modules/activation.py and it seems it worked but is there a better way?

@rgaignoux
Copy link

rgaignoux commented Aug 29, 2023

Hello. Same problem with pytorch 2.0.1

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

4 participants