Skip to content

Conversation

@wawltor
Copy link
Contributor

@wawltor wawltor commented Jan 14, 2022

PR types

New features

PR changes

APIs

Describe

add the uva function for the Tensor

@paddle-bot-old
Copy link

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

reinterpret_cast<void *>(data_ptr), 0);

// Reset the memory with device pointer
std::shared_ptr<memory::allocation::Allocation> holder(
Copy link
Contributor

Choose a reason for hiding this comment

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

使用make_shared构造shared_ptr效率会更高一些

Copy link
Contributor Author

Choose a reason for hiding this comment

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

使用make_shared构造shared_ptr效率会更高一些

Done

Copy link
Contributor

@joey12300 joey12300 left a comment

Choose a reason for hiding this comment

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

LGTM

@wawltor wawltor merged commit bfacd70 into PaddlePaddle:develop Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants