Skip to content

[CINN]Add iter_vals type cast logic #72204

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

ggggxm
Copy link
Contributor

@ggggxm ggggxm commented Apr 11, 2025

PR Category

CINN

PR Types

Bug fixes

Description

  • Add iter_vals type cast logic(iter_vals and loop_var should be the same type, loop_var may be cast in _For_::Make)
  • remove useless code

Copy link

paddle-bot bot commented Apr 11, 2025

你的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 paddle-bot bot added the contributor External developers label Apr 11, 2025
@ggggxm ggggxm force-pushed the FixTypeMismatch branch 3 times, most recently from f5868ac to 62af95c Compare April 16, 2025 08:19
@ggggxm ggggxm changed the title Fix type mismatch for op: add, sigmoid related ops, tril and logical_not set axis type int64 by default,fix type mismatch for tril Apr 16, 2025
@@ -68,7 +68,7 @@ std::string axis_name(int level) {
std::vector<ir::Var> GenDefaultAxis(int naxis) {
std::vector<ir::Var> axis;
for (int i = 0; i < naxis; i++) {
axis.emplace_back(cinn::common::axis_name(i));
axis.emplace_back(cinn::common::axis_name(i), type_of<int64_t>());
Copy link
Contributor

@lshpku lshpku Apr 18, 2025

Choose a reason for hiding this comment

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

这样改越界了,动到CINN的大动脉了,在这里改type对CINN影响太广,整个CINN流程里面的axis type都会变,没有详细评估不能这么改,照理来说应该只改tril算子自己的部分

@ggggxm ggggxm changed the title set axis type int64 by default,fix type mismatch for tril Add iter_vals type cast logic Apr 21, 2025
@ggggxm ggggxm changed the title Add iter_vals type cast logic [CINN]Add iter_vals type cast logic Apr 21, 2025
@lshpku lshpku merged commit c1c9bfe into PaddlePaddle:develop Apr 22, 2025
39 of 40 checks passed
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants