Skip to content

Conversation

@ooooo-create
Copy link
Contributor

@ooooo-create ooooo-create commented Dec 17, 2024

PR Category

CINN

PR Types

Others

Description

Pcard-67164

  • 增加 slice op 符号推导推导 data 数据的条件

或者 ends - starts (会超过 idim)可以化简成一个整数时(shape 为 0D/1D 且是整数)取 abs ,在 data 区产生新符号

@paddle-bot
Copy link

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

@paddle-bot paddle-bot bot added the contributor External developers label Dec 17, 2024
@gongshaotian
Copy link
Contributor

Description 中后面带上 Pcard-67164 的标识

@ooooo-create
Copy link
Contributor Author

Description 中后面带上 Pcard-67164 的标识

已添加

const auto &out_shape =
in_shapeordata.data().has_value() && starts_ends_all_int
? GetDataDimExprs()
: GetShapeDimExprs();
Copy link
Contributor

Choose a reason for hiding this comment

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

这两个函数起名有点模糊,之后可以考虑系统性优化下

Copy link
Contributor

Choose a reason for hiding this comment

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

是的,这俩是历史遗留问题了,slice后面估计要大改

Copy link
Contributor Author

Choose a reason for hiding this comment

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

收到

@Hongqing-work Hongqing-work merged commit 0db23b7 into PaddlePaddle:develop Dec 23, 2024
28 checks passed
@ooooo-create ooooo-create deleted the fix_slice_op_sym_infer branch March 8, 2025 04:06
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.

3 participants