Skip to content

Conversation

@Shixiaowei02
Copy link
Contributor

@Shixiaowei02 Shixiaowei02 commented Jan 14, 2022

PR types

Others

PR changes

APIs

Describe

将 DenseTensor 的构造函数改为支持 Allocator 的形式,以与框架单例解耦。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@jim19930609 jim19930609 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

In a consecutive PR, you may consider adding some more comments on how "Allocator* alloc_" will be modified/refactored together with the clean up for "Storage" in the future, or adding some validation checks to guarantee the robustness.

@Shixiaowei02
Copy link
Contributor Author

Approved.

In a consecutive PR, you may consider adding some more comments on how "Allocator* alloc_" will be modified/refactored together with the clean up for "Storage" in the future, or adding some validation checks to guarantee the robustness.

Ok, I will remove the Storage member in Tensor as soon as possible and ask you to review the code.

@Shixiaowei02 Shixiaowei02 merged commit 5c35867 into PaddlePaddle:develop Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants