-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[CINN]disable infer shape in static shape #62211
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
… diable_infer_shape_in_static_shape
@@ -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) { |
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need_update_shape_
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Bug fixes
PR changes
Others
Description
pcard-76996
在后续的动静shape的merge结构中, infer shape的推导存在一些的问题,暂时禁用静态shape场景下更新输出的shape(也无需更新shape)