This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
[DISCUSS] Naming of variables during transformation #42
Comments
summary of offline discussion during open source meeting:
|
MasterJH5574
pushed a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Dec 13, 2022
Co-authored-by: Hongyi Jin <[email protected]>
vinx13
pushed a commit
to vinx13/relax
that referenced
this issue
Dec 14, 2022
Co-authored-by: Hongyi Jin <[email protected]>
MasterJH5574
pushed a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Dec 24, 2022
Co-authored-by: Hongyi Jin <[email protected]>
MasterJH5574
added a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Dec 24, 2022
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
MasterJH5574
added a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Dec 30, 2022
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
vinx13
pushed a commit
to vinx13/relax
that referenced
this issue
Jan 9, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
MasterJH5574
added a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Jan 13, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
MasterJH5574
added a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Jan 16, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
vinx13
pushed a commit
to vinx13/relax
that referenced
this issue
Jan 31, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
vinx13
pushed a commit
to vinx13/relax
that referenced
this issue
Jan 31, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
vinx13
pushed a commit
to vinx13/relax
that referenced
this issue
Feb 8, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
MasterJH5574
added a commit
to MasterJH5574/tlc-relax
that referenced
this issue
Feb 12, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
vinx13
pushed a commit
to vinx13/relax
that referenced
this issue
Feb 13, 2023
(tlc-pack#57) * [FIX][Pass] concurrent modification in RemoveUnusedVars (tlc-pack#32) * [Pass] Fix concurrent modification in RemoveUnusedVars When running RemoveUnusedVars (i.e. remove_all_unused), in some cases the map users will raise Concurrent modification error. This commit fixed it by changing the logic to "iterate the map first and update it later". * change the algorithm by store keys first * Add an ICHECK before getting map value * change the information of the ICHECK * fix find include path (tlc-pack#42) Co-authored-by: Hongyi Jin <[email protected]> * [BUG] ExternFunc is not considered in attach_global_symbol.cc (tlc-pack#48) * [Cherry-Pick] Minor fix for TaskScheduler and VerifyGPUCode (tlc-pack#54) * [Fix] Task scheduler error prompt upon build/run failure (#13601) * [Fix] Use proper target in VerifyGPUCode (#13548) Previously, the VerifyGPUCode post-processor uses hardcoded target `Target("cuda")` for applying pass LowerIntrin. This is a bit problematic since the actual target can be other GPU target (e.g., Metal). Therefore, this PR changes the hardcoded target to be the actual target. Co-authored-by: Chaosfan <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Hongyi Jin <[email protected]> Co-authored-by: Bohan Hou <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We have lots of implicit agreement on variable naming, for example:
lv
means local variable, whilegv
means global variablesh
means shape variablestorage
means storage,alloc
andtensor
both mean allocated tensorThose naming conventions often are introduced by different transformation pass and the reflected property are often orthogonal, for example, a variable can be a local variable also a shape variable. Using those conventions together would make the final program a mess. For example:
Orignal program:
After lowering:
We might want to have a unified naming convention instead of creating one by one in each transformation to improve readability.
The text was updated successfully, but these errors were encountered: