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
Added support hardswish function #100
Added support hardswish function #100
Conversation
@shaharelys Thank you, so excited to see you with a PR here. |
Hey guys! @nikitaved @t-vi, I would love to get your take on this whenever possible. In the meantime, I'll start working on the one_hot issue at #64. |
@shaharelys, Apologies for the delay. The PR seems great at first sight, but I wanted to have @nikitaved take a more thorough look and we've hit a very long weekend with bank holidays both Friday and today. |
While you are waiting, could you look into how to only test for the floating point inputs (on cuda?):
|
I usually try to run this locally with |
…/shaharelys/lightning-thunder into added_support_hardswish_function
Okay, I believe this issue can be addressed by updating the following:
to:
I've made this adjustment, and the issue should now be resolved. Btw @t-vi, how could I have identified this error on my own? I ran |
Looks pretty good, @shaharelys! I made a recommendation to limit the operation's supported dtypes. I think the operation isn't defined on complex types, and while defined on exact types they're not very important to support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shaharelys! Looks great. The CI failure is an unrelated flaky failure.
Before submitting
F.hardswish
#92Yes
btw, the url should be fixed to 'https://github.com/Lightning-AI/pytorch-lightning/blob/**master**/.github/CONTRIBUTING.md'.
opinfo.py
What does this PR do?
Implements the HardSwish activation function.
Fixes #92
PR review
This PR is open for review, though I'm not entirely certain it's 100% complete, as this is my first contribution. All tests have passed, but
docs
has not been updated. Feedback from the community is welcomed!Did you have fun?
Yes! 🙃