Skip to content

Don't reuse nn.ReLU modules #239

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

Merged
merged 1 commit into from
May 1, 2022
Merged

Don't reuse nn.ReLU modules #239

merged 1 commit into from
May 1, 2022

Conversation

ProGamerGov
Copy link
Contributor

@ProGamerGov ProGamerGov commented May 1, 2022

Reusing the same ReLU module for multiple layers can make it more difficult for researchers as for example PyTorch's hook system won't work properly on the reused layer modules. I ran into this issue while building and testing interpretability tools on the CLIP models.

This PR doesn't change how any of the models work. It merely makes it possible to access and research each ReLU layer separately. Let me know if I need to make any changes before it can be merged!

@jongwook jongwook merged commit b46f5ac into openai:main May 1, 2022
rom1504 pushed a commit to rom1504/CLIP that referenced this pull request Jan 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants