CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[CINN] Add Div to replace Recipical in DimExpr #70376
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
Conversation
…rity and functionality
你的PR提交成功,感谢你对开源项目的贡献! |
…anch 'develop' of https://github.com/PaddlePaddle/Paddle into expr-div
Split simplifyDiv pass
Sorry to inform you that 36af164's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
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 overrall
a0440ba
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
* add div shape op * fix ut * Refactor SimplifyDiv to streamline numerator and denominator handling * fix * Refactor Div structure and update related operations for improved clarity and functionality * fix * fix * fix * fix * add BinaryExprMatchTrait * fix broadcast_tree typo and fix bug of BinaryDimExprMatchTrait * refine code * optimize error message and delete FlattenOperands<Div> * fix bug * refine * accuracy * prevent infinite loops * delete VisitEachOperandStruct<Div> * refine code * clean code * Add Mul(S0,0) => 0 and check for divided by 0 * fix more cinn tests * Code Reuse * refine code * revert parallel_run * refine error message --------- Co-authored-by: PuQing <me@puqing.work> Co-authored-by: ooooo <3164076421@qq.com>
* abstract pass initial commit * remove unused index_expr code * Fix compiling error on CI. * Change the log level. * Rename ap_lower_fusion_op_pass to ap_generic_drr_pass. * Rename ap_unary -> ap_variadic, ApUnary -> ApVariadic. * Fallback to cinn when ap fails, and disable fuse_gemm_epilogue when ap is enabled. * Fix compiling error in CI, including: using std::memcpy instead of reinterpret_cast to avoid strict-aliasing. * Fix narrowing conversion error and unused value error. * Fix missing-field-initializers and unused-result error on CI. * Fix some sign-compare error on CI. * Add cmake dependent. * Fix some using statement without creating an alias. * Support experimental/type_traits for WIN32. * Fix an unused-but-set-parameter and remove the `typename` in using statement added by previous commit. * Disable AP when cinn is not enabled. * Remove the use of Reciprocal because Reciprocal is deleted by #70376. * Fix "basic_string::_M_construct null not valid" error. * Fix typo. * Support meticulous matching (with input/outoput number). Submit by hxzd5568. * remove redundant sentence * Using void* as StreamT. * Fix compiling error related to std::optional<StreamT> on gcc12. * support no-extra-use for temporary ir value in source pattern * minor fix * minor fix * Return the address of stream instead. * support paddle.cc.* * fix adt::WeakPtrLock bug * rename all non python standard api's to __builtin__xxx * move paddle.cc into paddle.incubate.cc * Add pcc to setup.py. * Add missing modules and return partial_program_layer directly in pcc.compile. * Fix the mismatched output numerical order issue * Remove force_register_fusion related codes in pcc api. * Add an argument train. * Add pcc to setup.py. --------- Co-authored-by: Liu Yiqun <liuyiqun01@baidu.com> Co-authored-by: hxzd5568 <3257591325@qq.com>
* add div shape op * fix ut * Refactor SimplifyDiv to streamline numerator and denominator handling * fix * Refactor Div structure and update related operations for improved clarity and functionality * fix * fix * fix * fix * add BinaryExprMatchTrait * fix broadcast_tree typo and fix bug of BinaryDimExprMatchTrait * refine code * optimize error message and delete FlattenOperands<Div> * fix bug * refine * accuracy * prevent infinite loops * delete VisitEachOperandStruct<Div> * refine code * clean code * Add Mul(S0,0) => 0 and check for divided by 0 * fix more cinn tests * Code Reuse * refine code * revert parallel_run * refine error message --------- Co-authored-by: PuQing <me@puqing.work> Co-authored-by: ooooo <3164076421@qq.com>
…ddle#71119) * abstract pass initial commit * remove unused index_expr code * Fix compiling error on CI. * Change the log level. * Rename ap_lower_fusion_op_pass to ap_generic_drr_pass. * Rename ap_unary -> ap_variadic, ApUnary -> ApVariadic. * Fallback to cinn when ap fails, and disable fuse_gemm_epilogue when ap is enabled. * Fix compiling error in CI, including: using std::memcpy instead of reinterpret_cast to avoid strict-aliasing. * Fix narrowing conversion error and unused value error. * Fix missing-field-initializers and unused-result error on CI. * Fix some sign-compare error on CI. * Add cmake dependent. * Fix some using statement without creating an alias. * Support experimental/type_traits for WIN32. * Fix an unused-but-set-parameter and remove the `typename` in using statement added by previous commit. * Disable AP when cinn is not enabled. * Remove the use of Reciprocal because Reciprocal is deleted by PaddlePaddle#70376. * Fix "basic_string::_M_construct null not valid" error. * Fix typo. * Support meticulous matching (with input/outoput number). Submit by hxzd5568. * remove redundant sentence * Using void* as StreamT. * Fix compiling error related to std::optional<StreamT> on gcc12. * support no-extra-use for temporary ir value in source pattern * minor fix * minor fix * Return the address of stream instead. * support paddle.cc.* * fix adt::WeakPtrLock bug * rename all non python standard api's to __builtin__xxx * move paddle.cc into paddle.incubate.cc * Add pcc to setup.py. * Add missing modules and return partial_program_layer directly in pcc.compile. * Fix the mismatched output numerical order issue * Remove force_register_fusion related codes in pcc api. * Add an argument train. * Add pcc to setup.py. --------- Co-authored-by: Liu Yiqun <liuyiqun01@baidu.com> Co-authored-by: hxzd5568 <3257591325@qq.com>
PR Category
CINN
PR Types
New features
Description
Pcard-67164
Add Div to replace Recipical in DimExpr