-
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 InferShape for truncated_gaussian_random and gaussian_random #40191
Conversation
Thanks for your contribution! |
@@ -21,6 +21,9 @@ | |||
#include "paddle/phi/core/dense_tensor.h" | |||
#include "paddle/phi/core/device_context.h" | |||
|
|||
#include "paddle/phi/infermeta/nullary.h" | |||
#include "paddle/phi/kernels/empty_kernel.h" |
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.
为啥include了empty_kernel.h?
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.
删掉了,thanks。
DataType dtype, | ||
MetaTensor* out); | ||
|
||
void GaussianRandomInferMeta(const ScalarArray& shape, |
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.
这里不是vector吗,我看下边的kernel全部替换成了vector
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.
truncated_gaussian_random 是 std::vector,gaussian_random 还是 ScalarArray。
PR types
Function optimization
PR changes
OPs
Describe
[Phi] move InferShape for truncated_gaussian_random and gaussian_random