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

[CINN]disable infer shape in static shape #62211

Merged

Conversation

phlrain
Copy link
Collaborator

@phlrain phlrain commented Feb 28, 2024

PR types

Bug fixes

PR changes

Others

Description

pcard-76996

在后续的动静shape的merge结构中, infer shape的推导存在一些的问题,暂时禁用静态shape场景下更新输出的shape(也无需更新shape)

Copy link

paddle-bot bot commented Feb 28, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link

paddle-bot bot commented Feb 28, 2024

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

@phlrain phlrain changed the title diable infer shape in static shape [CINN]disable infer shape in static shape Feb 29, 2024
@@ -173,7 +179,7 @@ void CinnJitInstruction::Run() {

auto stream = gpu_ctx->stream();

if (FLAGS_cinn_bucket_compile) {
if (FLAGS_cinn_bucket_compile && need_update_shape) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this->need_update_shape_

@@ -52,6 +52,7 @@ class CinnJitInstruction : public InstructionBase {
int32_t input_tensor_size;
int32_t output_tensor_size;

bool need_update_shape{false};
Copy link
Contributor

Choose a reason for hiding this comment

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

need_update_shape_

Copy link
Contributor

@BiynXu BiynXu left a comment

Choose a reason for hiding this comment

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

LGTM

@phlrain phlrain merged commit 4228813 into PaddlePaddle:develop Mar 5, 2024
30 of 31 checks passed
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.

5 participants