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

fix: adapt f16 relu #76

Merged
merged 1 commit into from
Feb 14, 2023
Merged

fix: adapt f16 relu #76

merged 1 commit into from
Feb 14, 2023

Conversation

ganler
Copy link
Member

@ganler ganler commented Feb 14, 2023

torch.relu do not natively support fp16 but is needed in gradient fn. Do a simple re-casting to make it work.

*should have let it patched together with the last PR but forgot this part. 🤦‍♂️

@ganler ganler merged commit 30743fe into ise-uiuc:main Feb 14, 2023
@ganler ganler deleted the fix-relu branch February 14, 2023 18:17
@ganler ganler mentioned this pull request Feb 19, 2023
1 task
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.

None yet

1 participant