-
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
[phi] move shape op #40248
[phi] move shape op #40248
Conversation
Thanks for your contribution! |
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.
后续建议追加再完善下
void ShapeKernel(const Context& ctx, | ||
const SelectedRows& input, | ||
DenseTensor* out) { | ||
auto in_var = input; |
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.
日升的建议是合理的,这段代码改成ShapeKernel<T, Context >(dev_ctx, input.value(), out);,是不是逻辑一样?
|
||
namespace phi { | ||
|
||
template <typename T, typename Context> |
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.
这个是不是可以向reshape一样直接放到kernels目录下呢,shape在每个设备上的实现都是一样的
PR types
New features
PR changes
OPs
Describe
[phi] move shape op