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

add the uva function for the Tensor #38950

Merged
merged 6 commits into from
Jan 18, 2022

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants