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

Implement PRELU as a binary operator instead of a one-off operator type #7034

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link
Contributor

Implement PRELU as a binary operator instead of a one-off operator type

This improves things in a few ways:

  • Removes a one-off operator implementation in favor of just using a standard binary operator.
  • The old PRELU packed weights, the new implementation just uses broadcasting like any other binary operator.
  • This should be more flexible and avoids initialization overhead and memory usage.

@copybara-service copybara-service bot force-pushed the test_668770049 branch 2 times, most recently from 2a3ec0f to ad63a2b Compare September 6, 2024 05:20
This improves things in a few ways:
- Removes a one-off operator implementation in favor of just using a standard binary operator.
- The old PRELU packed weights, the new implementation just uses broadcasting like any other binary operator.
- This should be more flexible and avoids initialization overhead and memory usage.

PiperOrigin-RevId: 668770049
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.

1 participant