Skip to content

Conversation

wanghuancoder
Copy link
Contributor

PR types

Others

PR changes

Others

Description

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

@juncaipeng juncaipeng merged commit 294858f 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