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

move trunc to pten #39543

Merged
merged 2 commits into from
Feb 17, 2022
Merged

move trunc to pten #39543

merged 2 commits into from
Feb 17, 2022

Conversation

betterpig
Copy link
Contributor

@betterpig betterpig commented Feb 14, 2022

PR types

Function optimization

PR changes

OPs

Describe

move trunc to pten

Note: .cu file need to use paddle::platform::PADDLE_CUDA_NUM_THREADS which only defined in "paddle/fluid/platform/device/gpu/gpu_primitives.h"

@paddle-bot-old
Copy link

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

Comment on lines 29 to 30
// T* out_data = out->mutable_data<T>(dev_ctx.GetPlace());
// T* out_data = dev_ctx.Alloc<T>(out);
Copy link
Contributor

Choose a reason for hiding this comment

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

这里的注释如果没用可以删掉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@YuanRisheng YuanRisheng merged commit 4501abd into PaddlePaddle:develop Feb 17, 2022
@betterpig betterpig deleted the op_move branch February 18, 2022 06:45
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.

2 participants