-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
【Hackathon No.68】Remove utils in phi #50833
Conversation
remove utils
# Conflicts: # paddle/fluid/operators/unsqueeze_op.h # paddle/fluid/operators/utils.h
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -144,4 +148,36 @@ inline T GetValue(const Context& dev_ctx, const DenseTensor& x) { | |||
return value; | |||
} | |||
|
|||
template <typename T = int32_t> | |||
inline std::vector<T> GetVectorFromTensor(const phi::DenseTensor* x) { |
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.
迁移过来后,需要把原位置的代码进行删除
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.
迁移过来后,需要把原位置的代码进行删除
删除了~
PR-CI-OP-benchmark过不去应该与这个pr的改动无关,我尝试过仅将paddle/fluid/operators/unsqueeze_op.h的中的变量need_resize_out_dims重命名为need_dims,无法通过该ci。
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
PR types
Others
PR changes
Others
Describe
paddle::framework::TensorCopySync
参考[PHI decoupling]decouple tensor_utils of TensorCopy #50264