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

support stride and speed up #397

Merged

Conversation

wanghuancoder
Copy link
Contributor

Paddle支持stride后,slice、split等共享显存。小Tensor的numpy会拷贝全部的大Tensor的显存。竞品也是这么做的。这有时候会导致numpy()的速度变慢进而进行模型的性能。本PR修复1个这样的问题。

@LielinJiang
Copy link
Collaborator

代码风格验证失败了,辛苦用yapf=0.26版本试试

@wanghuancoder
Copy link
Contributor Author

代码风格验证失败了,辛苦用yapf=0.26版本试试

done, thx!

@LielinJiang LielinJiang merged commit e05be88 into PaddlePaddle:develop Aug 2, 2023
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