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

run program contiguous tensor first #57431

Merged

Conversation

wanghuancoder
Copy link
Contributor

@wanghuancoder wanghuancoder commented Sep 18, 2023

PR types

Others

PR changes

Others

Description

静态图暂时不支持stride。
动转静有可能是动态图部分逻辑动转静。
所以传递run program的Tensor有可能是非连续的。因此需要给run_program加contiguous的检查和转换。
Pcard-67164

2742195759
2742195759 previously approved these changes Sep 18, 2023
Copy link
Contributor

@2742195759 2742195759 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@2742195759 2742195759 left a comment

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder merged commit 9308f25 into PaddlePaddle:develop Sep 19, 2023
Frida-a pushed a commit to Frida-a/Paddle that referenced this pull request Oct 14, 2023
* run program contiguous tensor first

* refine
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* run program contiguous tensor first

* refine
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