[Unity] Support simple dynamic-shape-aware fusion#14396
Conversation
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.
Generated by tvm-bot |
1 similar comment
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.
Generated by tvm-bot |
348fed2 to
4646456
Compare
4646456 to
7e6b3c1
Compare
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows: - Fix FuncStructInfo in well-formed checks - Renew symbolic var defs in fuse_ops to prevent malformed functions
7e6b3c1 to
930f936
Compare
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows: - Fix FuncStructInfo in well-formed checks - Renew symbolic var defs in fuse_ops to prevent malformed functions
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows: - Fix FuncStructInfo in well-formed checks - Renew symbolic var defs in fuse_ops to prevent malformed functions
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows: - Fix FuncStructInfo in well-formed checks - Renew symbolic var defs in fuse_ops to prevent malformed functions
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows: - Fix FuncStructInfo in well-formed checks - Renew symbolic var defs in fuse_ops to prevent malformed functions
|
Hi @Hzfengsy, it seems this change broke one of CUTLASS BYOC tests: If I remove |
|
Hi @masahi, thanks for reporting the bug.
|
|
@masahi, After a deep dive, it's may not the issue of FuseOps, as the output is well-formed and pass the check. The error is reported at the pass |
|
Yes, it might be a bug in |
Why not? Does this mean |
Sorry, it updated. My bad |
|
https://github.com/apache/tvm/blob/unity/src/relax/transform/run_codegen.cc#L105 Maybe we shouldn't use the original function's |
|
@Hzfengsy Is this line in https://github.com/apache/tvm/blob/unity/src/relax/ir/expr_functor.cc#L592 I think the mutated function would continue referring to the old sym var if the sym var is used in a return sinfo. |
We need to update the |
|
I think this is a problem unique to BYOC. |
|
The fix has been added in the PR #14291 |
In the last PR apache#14396, we enable dynamic-shape-aware fusion in FuseOps. In this PR, we support the following FuseTIR pass for simple cases. This PR also fixes a minor compilation warning in `json_runtime.h`
In the last PR #14396, we enable dynamic-shape-aware fusion in FuseOps. In this PR, we support the following FuseTIR pass for simple cases. This PR also fixes a minor compilation warning in `json_runtime.h`
This PR adds support for simple dynamic-shape-aware fusion, which is the first step towards supporting dynamic shapes. The main changes are as follows:
cc @tqchen @MasterJH5574 @jinhongyii