Skip to content

RFC: Migrate gelu activation from Addons to Core #252

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 7 commits into from
Jul 16, 2020

Conversation

seanpmorgan
Copy link
Member

Following the yet to be merged template from: #241

This is a bit overdue so wanted to start the discussion period. Linking PR:
tensorflow/tensorflow#33945

@seanpmorgan
Copy link
Member Author

cc @alextp to review whenever time allows

Copy link
Contributor

@alextp alextp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Let's turn it into a PR.

## Relevant GitHub Issues
* https://github.com/tensorflow/tensorflow/pull/33945
* https://github.com/tensorflow/addons/issues/550
* https://github.com/tensorflow/tensorflow/issues/32783
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add keras-team/keras#11834?

* C++ : https://github.com/tensorflow/addons/blob/r0.10/tensorflow_addons/custom_ops/activations/cc/kernels/gelu_op.h
* Does this include custom-op kernels?
* Yes, but currently proposing to just migrate the python composite op. This may
change with discussion in the RFC.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean only python implementation will be migrated to TF?
I ask this because I saw the below topic Is it worth bringing over the custom-op kernels for CPU/GPU? We really hope to add a core kernel for CPU, it will get benefit from fusion, mkldnn or other optimization easily.

Copy link

@nammbash nammbash Jun 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding to the discussion Zantares(Teng Lu) mentions, there is a need for core C++ kernels over and above python was also requested and mentioned in the PR by pennporn here:
tensorflow/tensorflow#33945 (comment)

@ematejska ematejska changed the title [RFC] Migrate gelu activation from Addons to Core RFC: Migrate gelu activation from Addons to Core Jul 8, 2020
@seanpmorgan
Copy link
Member Author

@ematejska @theadactyl I've marked this as accepted and it can be merged IMO since it was approved and the PR is going through:
tensorflow/tensorflow#41178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants