-
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
【Infer Symbolic Shape No.232】【BUAA】Add svd, changed 3 files #67664
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 40cd98a's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
const symbol::DimExpr m = x_shapes[x_rank - 2]; | ||
const symbol::DimExpr n = x_shapes[x_rank - 1]; | ||
const symbol::DimExpr k = | ||
std::min(m.Get<std::int64_t>(), n.Get<std::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.
这里应该用symbol::DimExprBuilder builder; builder.min()
const symbol::DimExpr n = x_shapes[x_rank - 1]; | ||
symbol::DimExprBuilder builder; | ||
const symbol::DimExpr k = | ||
builder.Min(m.Get<std::int64_t>(), n.Get<std::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.
builder.min() 不需要使用.Get() 了
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
PR Category
User Experience
PR Types
New features
Description
加入了svd
单测位于
test\legacy_test\test_svd_op.py
self.check_output(no_check_set=['U', 'VH'], check_pir=True)
,其中默认check_symbol_infer=True,