-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【BUAA】【Infer Symbolic Shape】add shardindex #67407
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
shardindex存在对应单测,check_pir默认关闭,请求豁免coverage |
int64_t last_dim = | ||
static_cast<int>(in_shape[in_shape.size() - 1].Get<std::int64_t>()); | ||
if (last_dim > 0) { | ||
PADDLE_ENFORCE_EQ(last_dim, | ||
1, | ||
common::errors::InvalidArgument( | ||
"The last dimension of Input(X) should be 1, " | ||
"but the value given is %d.", | ||
last_dim)); | ||
} |
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.
last_dim不一定就是int64_t,这里直接加约束就好
冲突了 |
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.
LGTM
麻烦补充描述下单测情况,并在表格中勾选 |
shardindex存在对应单测,check_pir默认关闭,请求豁免coverage |
PR Category
CINN
PR Types
Others
Description
添加 ShardIndex 算子符号推导接口实现。