Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

【Infer Symbolic Shape No.168】【BUAA】 Add partial sum op #67888

Merged
merged 7 commits into from
Sep 6, 2024

Conversation

MufanColin
Copy link
Contributor

PR Category

CINN

PR Types

Improvements

Description

添加 partial sum 算子符号推导接口。

Copy link

paddle-bot bot commented Aug 31, 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 Aug 31, 2024
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Sep 2, 2024
phi::errors::InvalidArgument("Only support two dimensions input now."));
if (i == 0) {
batch_size = x_shape[0];
input_len = x_shape[1];
Copy link
Contributor

Choose a reason for hiding this comment

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

这两个变量的声明和初始化放在for循环前面

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改。

PADDLE_ENFORCE_GT(
static_cast<int>(input_len.Get<std::int64_t>()),
start_index,
phi::errors::OutOfRange("start_index must be less than input len"));
Copy link
Contributor

Choose a reason for hiding this comment

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

删掉这个enforce吧,input_len不一定是int类型,或者在enforce前加个Dimexpr的类型判断

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我将这个 enforce 删除了。

PADDLE_ENFORCE_GE(static_cast<int>(input_len.Get<std::int64_t>()),
start_index + length,
phi::errors::OutOfRange(
"start_index + length is larger than input length"));
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 Author

Choose a reason for hiding this comment

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

我将这个 enforce 删除了。

@gongshaotian
Copy link
Contributor

补充一下单测状态

@MufanColin
Copy link
Contributor Author

补充一下单测状态

已补充。

Copy link
Contributor

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

流水线挂了不少,合下develop分支;
有OpTest单测,为什么coverage流水线测试没过?

@MufanColin
Copy link
Contributor Author

PR-CI-Hygon-DCU 无权限重新运行。

@gongshaotian
Copy link
Contributor

rerun了coverage里的paddle-test,这次应该没问题

@MufanColin
Copy link
Contributor Author

好像还是没有过

@MufanColin MufanColin closed this Sep 6, 2024
@MufanColin MufanColin reopened this Sep 6, 2024
@luotao1 luotao1 merged commit 33a1757 into PaddlePaddle:develop Sep 6, 2024
29 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants