-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Pten]Support parse kernel key by multi-inputs #37517
[Pten]Support parse kernel key by multi-inputs #37517
Conversation
Thanks for your contribution! |
paddle/pten/api/lib/data_type_set.h
Outdated
} else if ((dtype_set.bitset() & f8) == f8) { | ||
promote_type = DataType::FLOAT64; | ||
} |
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.
注释里说这个函数是处理复数类型的,这里对float64的处理是为了?
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.
已删
@@ -51,6 +52,8 @@ struct KernelKeySet { | |||
BackendSet backend_set{Backend::UNDEFINED}; | |||
DataLayout layout{DataLayout::UNDEFINED}; | |||
DataType dtype{DataType::UNDEFINED}; |
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.
dtype和dtype set设计上能否仅保留其一,比如在最终取回kernel key的时候,根据dtype set计算dtype,目前看起来有些冗余
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.
由于dtype自己的特性需要都保留,不过已优化了代码,看起来更好一些
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.
LGTM, 后面这里我再整理一下
* Support parse kernel key by multi-inputs * optimize code according to reviewer
PR types
Others
PR changes
Others
Describe
Support parse kernel key by multi-inputs and the final kernel key's dtype will be determined by multi-inputs' dtype