-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add type reduction support to Slice and Transpose #6547
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
Add type reduction support to Slice and Transpose #6547
Conversation
| } | ||
|
|
||
| template <typename EnabledTypes, typename T> | ||
| static inline bool CallSliceImplIfEnabled(OpKernelContext* ctx, |
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.
CallSliceImplIfEnabled [](start = 19, length = 22)
wonder if this can be extended to call arbitrary enable-able code with a lambda... #Closed
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.
generic lambdas were c++14 and we're currently stuck at c++11, so I didn't think doing it as a lambda was possible.
In reply to: 569695618 [](ancestors = 569695618)
edgchen1
left a comment
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.
![]()
Description:
Add type reduction support to Slice and Transpose kernels.
Motivation and Context
Reduce binary size.