Skip to content

Conversation

@edgchen1
Copy link
Contributor

Description
Consolidate different MLTypeCallDispatcher classes into a single one.

Motivation and Context
Clean up.

@edgchen1 edgchen1 requested a review from a team as a code owner February 11, 2021 03:36
*
* The constructor accepts a value corresponding to a tensor element type.
* For example, it can be obtained from:
* input_tensor->DataType()->AsPrimitiveType()->GetDataType()
Copy link
Member

@yuslepukhin yuslepukhin Feb 12, 2021

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().
Copy link
Member

@yuslepukhin yuslepukhin Feb 12, 2021

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>>(),
Copy link
Member

@yuslepukhin yuslepukhin Feb 12, 2021

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

Copy link
Member

Choose a reason for hiding this comment

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

Okay, let's add a comment here.


In reply to: 574931521 [](ancestors = 574931521)

Copy link
Member

@yuslepukhin yuslepukhin left a comment

Choose a reason for hiding this comment

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

:shipit:

@edgchen1 edgchen1 merged commit b2cddc5 into master Feb 12, 2021
@edgchen1 edgchen1 deleted the edgchen1/consolidate_dispatcher branch February 12, 2021 21:26
snnn pushed a commit that referenced this pull request Feb 13, 2021
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.

3 participants