-
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
[Refactoring Tensor PR #5] replace storage with pten allocation #39085
Merged
Shixiaowei02
merged 19 commits into
PaddlePaddle:develop
from
Shixiaowei02:dev/storage_11
Jan 24, 2022
Merged
[Refactoring Tensor PR #5] replace storage with pten allocation #39085
Shixiaowei02
merged 19 commits into
PaddlePaddle:develop
from
Shixiaowei02:dev/storage_11
Jan 24, 2022
Conversation
This file contains 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
Thanks for your contribution! |
Shixiaowei02
force-pushed
the
dev/storage_11
branch
from
January 21, 2022 14:06
13f1b02
to
344b58f
Compare
Shixiaowei02
force-pushed
the
dev/storage_11
branch
from
January 22, 2022 09:46
fa6c36f
to
838626a
Compare
Shixiaowei02
force-pushed
the
dev/storage_11
branch
from
January 22, 2022 11:32
7402a31
to
563c79f
Compare
Shixiaowei02
changed the title
[DO NOT MERGE] test
[Refactoring Tensor PR #5] replace storage with allocation
Jan 23, 2022
Shixiaowei02
force-pushed
the
dev/storage_11
branch
from
January 23, 2022 03:44
79d41b4
to
83641bd
Compare
Shixiaowei02
force-pushed
the
dev/storage_11
branch
from
January 23, 2022 03:46
83641bd
to
f717413
Compare
Shixiaowei02
changed the title
[Refactoring Tensor PR #5] replace storage with allocation
[Refactoring Tensor PR #5] replace storage with pten allocation
Jan 23, 2022
chenwhql
approved these changes
Jan 23, 2022
Aurelius84
approved these changes
Jan 24, 2022
jim19930609
approved these changes
Jan 24, 2022
raindrops2sea
approved these changes
Jan 24, 2022
veyron95
pushed a commit
to veyron95/Paddle
that referenced
this pull request
Jan 24, 2022
…cation (PaddlePaddle#39085) * updates callers, test=develop * updates tensor, test=develop * fixes errors, test=develop * remove some dtypes, test=develop * fix errors in the base storage modification, test=develop * fixes a bug, test=develop * fixes the bugs in push the whole, test=develop * updates, test=develop * update * update, test=develop * fixes the mac-py3 CI, test=develop * remove the storage impl, test=develop * updates some codes, test=develop * update, test=develop * updates pten allocation, test=develop
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 从 Fluid 可推全状态推进到 InfRT 可接入状态,并包含 Allocation 实施的收尾工作。具体修改为:
1、Tensor 推全中间态存在两个 place,将数据结构行为融为一体后去除冗余;
2、为在避免修改 Fluid GC 的前提下保证 Tensor 性能,将 DenseTensor 的 storage 替换为
pten::Allocation
;3、删除
deprecated/allocator.h
文件;4、统一
Tensor
和原先LoDTensor
的模板实例化类型,避免链接或序列化过程出错;5、修复其它问题。
注意:本提交将影响自定义算子 Tensor 构造时只传入 place 的兼容性,使其报错,为避免冲突此提交先行合入,其副作用将由 @Shixiaowei02 在 #39153 (commit af32d0) 完全去除。