-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Consolidate MLTypeCallDispatcher classes #6651
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
Conversation
| * | ||
| * The constructor accepts a value corresponding to a tensor element type. | ||
| * For example, it can be obtained from: | ||
| * input_tensor->DataType()->AsPrimitiveType()->GetDataType() |
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.
->DataType()->AsPrimitiveType()->GetDataType() [](start = 17, length = 46)
->GetElementType() #Resolved
| * @param dt_type The value corresponding to the tensor element type to be | ||
| * dispatched to. This can be obtained from | ||
| * utils::ToTensorProtoElementType<T>() or | ||
| * input_tensor->DataType()->AsPrimitiveType()->GetDataType(). |
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.
DataType()->AsPrimitiveType()->GetDataType(). [](start = 26, length = 45)
->GetElementType() #Resolved
| static_cast<void>(std::array<int, sizeof...(Types)>{ | ||
| helper.template Invoke<Types>(Fn<Types>(), std::forward<Args>(args)...)...}); | ||
| helper.template Invoke<Types>( | ||
| boost::mp11::mp_apply<Fn, boost::mp11::mp_push_back<LeadingTemplateArgTypeList, Types>>(), |
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.
boost::mp11::mp_push_back<LeadingTemplateArgTypeList, Types> [](start = 37, length = 61)
Why not simply SupportedTypesList? #Resolved
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.
yuslepukhin
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
Consolidate different MLTypeCallDispatcher classes into a single one.
Motivation and Context
Clean up.