Skip to content
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
merged 19 commits into from
Jan 24, 2022

Conversation

Shixiaowei02
Copy link
Contributor

@Shixiaowei02 Shixiaowei02 commented Jan 20, 2022

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) 完全去除。

@paddle-bot-old
Copy link

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

@Shixiaowei02 Shixiaowei02 changed the title [DO NOT MERGE] test [Refactoring Tensor PR #5] replace storage with allocation Jan 23, 2022
@Shixiaowei02 Shixiaowei02 changed the title [Refactoring Tensor PR #5] replace storage with allocation [Refactoring Tensor PR #5] replace storage with pten allocation Jan 23, 2022
@Shixiaowei02 Shixiaowei02 merged commit 11938ae into PaddlePaddle:develop 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants