Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to this commit, use of R.call_tir in the input to MergeCompositeFunctions would result in a segfault, when attempting to determine the Group* that contains the relax::GlobalVar of the callee.

This commit updates MergeCompositeFunctions to check for relax::GlobalVar and relax::Tuple instances.

Closes #17120

Prior to this commit, use of `R.call_tir` in the input to
`MergeCompositeFunctions` would result in a segfault, when attempting
to determine the `Group*` that contains the `relax::GlobalVar` of the
callee.

This commit updates `MergeCompositeFunctions` to check for
`relax::GlobalVar` and `relax::Tuple` instances.

Closes apache#17120
@tqchen tqchen merged commit 8680c39 into apache:main Jul 31, 2024
@Lunderberg Lunderberg deleted the bugfix_check_for_global_var_in_merge_composite_functions branch July 31, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Relax][Bug] Segmentation fault when using the MergeCompositeFunctions transform

2 participants