Skip to content

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

2 participants