-
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
[Unify Tensors PR #1] Replaced pten::Allocation with shared_ptr<memory::Allocation> for Storage #38301
[Unify Tensors PR #1] Replaced pten::Allocation with shared_ptr<memory::Allocation> for Storage #38301
Conversation
Thanks for your contribution! |
…faces accordingly
8f19489
to
23ce28d
Compare
… allocation_rearrange_pr
… allocation_rearrange_pr
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
paddle/pten/core/allocator.h
Outdated
@@ -15,6 +15,7 @@ limitations under the License. */ | |||
#pragma once | |||
|
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.
不建议改这个文件,Tensor 可将接收的 Allocator 从 pten::Allocator
改为 memory::Allocator
。
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.
Per offline discussion, replaced AllocateShared() interface with a virtual place() method.
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.
除了 paddle/pten/core/allocator.h
,其它我没问题
… allocation_rearrange_pr PaddlePaddle#2
160c131
to
8c08dc6
Compare
paddle/pten/core/allocator.h
Outdated
@@ -15,6 +15,7 @@ limitations under the License. */ | |||
#pragma once | |||
|
|||
#include <cstdint> | |||
#include "paddle/fluid/memory/memory.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.
这个头文件建议删除下
… allocation_rearrange_pr
e37c48b
to
c8f31ba
Compare
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
New features
PR changes
Others
Describe
Replaced pten::Allocation with shared_ptrmemory::Allocation for Storage.