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

Support feed op new ir #54840

Merged
merged 14 commits into from
Jun 26, 2023
Merged

Conversation

phlrain
Copy link
Collaborator

@phlrain phlrain commented Jun 25, 2023

PR types

Others

PR changes

Others

Description

支持feed op

Other

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Jun 25, 2023

你的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.

@paddle-bot
Copy link

paddle-bot bot commented Jun 25, 2023

❌ 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.

PADDLE_THROW(phi::errors::Unimplemented(
"only support dense tensor in vector type for now"));
} else if (result_type.isa<ir::VectorType>()) {
auto pos1 = result_type.dyn_cast<ir::VectorType>().data()[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

这里直接取了[0],是说当result_type为vector时,内在元素至少有1个?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个问题 和下面的问题 是一起的,原来仅支持单个输出, 我升级了多输出,但是这块的逻辑没有适配对

}

ir::Type t1 = ir::VectorType::get(ctx, op_output_types);
op_output_types.clear();
Copy link
Contributor

Choose a reason for hiding this comment

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

这里为什么要clear op_output_types? op_output_types的每个index对应的不是result_type所在的位置么,这里的clear是放在其中的一个分支里的。
对于:[Tensor0, [Tensor1], Tensor2],会导致最后的 op_output_types 只是 [[Tensor1], Tensor2] ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这块确实是一个bug,仅在有一个 VectorType的情况是对的,其他的场景是有bug的,我看看怎么修复

Copy link
Collaborator Author

@phlrain phlrain Jun 26, 2023

Choose a reason for hiding this comment

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

在 pr #54865 中修复

Copy link
Contributor

@Aurelius84 Aurelius84 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

@heavyrain-lzy heavyrain-lzy 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 1e32313 into PaddlePaddle:develop Jun 26, 2023
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