Skip to content
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

[Bugfix][Relax] Set purity=false for LazySetOutput #17119

Merged

Conversation

Lunderberg
Copy link
Contributor

The relax.transform.LazySetOutput transformation updates a Relax function to produce output from a fset_output callback. In the initial implementation, the fset_output was marked as a pure function, which allowed it to be erroneously removed from a function.

This commit updates the relax::FuncStructInfo used to annotate fset_output, marking it as an impure function.

The `relax.transform.LazySetOutput` transformation updates a Relax function
to produce output from a `fset_output` callback.  In the initial
implementation, the `fset_output` was marked as a pure function, which
allowed it to be erroneously removed from a function.

This commit updates the `relax::FuncStructInfo` used to annotate
`fset_output`, marking it as an impure function.
@Lunderberg Lunderberg requested a review from vinx13 June 26, 2024 18:18
@Lunderberg Lunderberg merged commit 3c6ca5d into apache:main Jun 27, 2024
19 checks passed
@Lunderberg Lunderberg deleted the relax_lazy_output_has_impure_callback branch June 27, 2024 14:52
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.

2 participants