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

[PHI decouple] move dropout_impl and cuda_graph_with_memory_pool from fluid to phi #49139

Merged
merged 12 commits into from
Dec 20, 2022

Conversation

huangjiyi
Copy link
Member

@huangjiyi huangjiyi commented Dec 17, 2022

PR types

Others

PR changes

Others

Describe

@paddle-bot
Copy link

paddle-bot bot commented Dec 17, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Dec 17, 2022
@huangjiyi huangjiyi changed the title [PHI decouple] move dropout and cuda_graph_with_memory_pool from fluid to phi [PHI decouple] move dropout_impl and cuda_graph_with_memory_pool from fluid to phi Dec 17, 2022
@huangjiyi
Copy link
Member Author

@YuanRisheng 帮忙 Review 一下


if (seed) {
phi::DenseTensor seed_cpu_tensor;
paddle::framework::TensorCopySync(
*seed, platform::CPUPlace(), &seed_cpu_tensor);
phi::Copy(dev_ctx, *seed, phi::CPUPlace(), false, &seed_cpu_tensor);
Copy link
Contributor

Choose a reason for hiding this comment

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

这里是同步拷贝,对应phi下copy参数应该是true

Copy link
Member Author

Choose a reason for hiding this comment

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

已处理

@luotao1
Copy link
Contributor

luotao1 commented Dec 20, 2022

@YuanRisheng 可以review了

@YuanRisheng YuanRisheng merged commit 579784e into PaddlePaddle:develop Dec 20, 2022
@huangjiyi huangjiyi deleted the decouple_dropout_impl branch March 8, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants