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 xpu assign_value #41

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Conversation

zmxdream
Copy link
Collaborator

@zmxdream zmxdream commented Jan 9, 2024

PR types

PR changes

Describe

因为assign_value op实际在cpu上运行,而assign_value op的输出是index_select/index_select_grad op的输入,导致这两个op需要将数据搬运到XPU,从而每个batch, index_select_grad_op有一段PrepareData时间

Copy link
Collaborator

@HuangShiqing HuangShiqing left a comment

Choose a reason for hiding this comment

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

+1

@zmxdream zmxdream merged commit 345905a into jack603047588:paddlebox Jan 11, 2024
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.

4 participants