-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
【Infer Symbolic Shape No.168】【BUAA】 Add partial sum op #67888
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
phi::errors::InvalidArgument("Only support two dimensions input now.")); | ||
if (i == 0) { | ||
batch_size = x_shape[0]; | ||
input_len = x_shape[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两个变量的声明和初始化放在for循环前面
There was a problem hiding this comment.
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")); |
There was a problem hiding this comment.
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的类型判断
There was a problem hiding this comment.
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")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我将这个 enforce 删除了。
补充一下单测状态 |
已补充。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
流水线挂了不少,合下develop分支;
有OpTest单测,为什么coverage流水线测试没过?
Try to fix some errors
PR-CI-Hygon-DCU 无权限重新运行。 |
rerun了coverage里的paddle-test,这次应该没问题 |
好像还是没有过 |
PR Category
CINN
PR Types
Improvements
Description
添加 partial sum 算子符号推导接口。