[Refactoring Tensor PR #7] differentiate deprecated interfaces#39228
Merged
Shixiaowei02 merged 2 commits intoPaddlePaddle:developfrom Jan 26, 2022
Merged
[Refactoring Tensor PR #7] differentiate deprecated interfaces#39228Shixiaowei02 merged 2 commits intoPaddlePaddle:developfrom
Shixiaowei02 merged 2 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
da23fb0 to
63371a7
Compare
7103f41 to
7328b7c
Compare
jim19930609
approved these changes
Jan 26, 2022
chenwhql
reviewed
Jan 26, 2022
| inline bool IsInitialized() const { return holder_ != nullptr; } | ||
|
|
||
| template <typename T> | ||
| T* data(); |
Contributor
There was a problem hiding this comment.
data也不需要吗?还是说要加mutable_data了
Contributor
Author
There was a problem hiding this comment.
我建议留 data() 接口,下个相关的PR中我移回来,并且补全注释
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
Function optimization
PR changes
APIs
Describe
目前
DenseTensor处于一个中间态。使用单独的源文件存放待清理的接口(如依赖其它第三方库的),以便其它上层框架依赖。达到最终态后,这个单独的文件将重新合并。