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]Add support for TensorList input in the Pad3d infer symbolic interface #70318

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

gongshaotian
Copy link
Contributor

@gongshaotian gongshaotian commented Dec 18, 2024

PR Category

CINN

PR Types

Bug fixes

Description

  • Add TensorList support to the padding parameters of pad3d op
  • Optimize error message prompts
    Pcard-67164

Copy link

paddle-bot bot commented Dec 18, 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.

Comment on lines 79 to 83
if (x_shape_or_data.data().has_value() && x_shape_or_data.shape().empty() &&
x_shape_or_data.data().value().size() == 1) { // 0D tensor
infer_context->SetShapeOrDataForValue(op->result(0), x_shape_or_data);
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

0D tensor 和 data有关系吗?

image

这里的逻辑感觉也有点问题

Copy link
Contributor Author

Choose a reason for hiding this comment

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

奥这里是reduceInferDim那个pr需要修改的内容,测完模型没有删

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image 这里的逻辑感觉也有点问题

这里的原逻辑是想有data就对data进行reduceinfer,感觉是为了简化写法?可以优化下

Copy link
Contributor

Choose a reason for hiding this comment

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

reduce算子应该不会把输入x的data往shape上弄,有data肯定也只能是往输出的data上放

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.

3 participants