-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug] [Relax] InternalError: Check failed: (*it).second == var #17200
Comments
Hi all, I accidentally used the pass |
Looks like each application of I think it would be good to have
|
@Lunderberg Thank you very much for your detailed explanation and repair plan! |
The `LiftTransformParams` pass produces additional functions, either named `$FOO_transform_params` when generating one transformation function per inference function, or `transform_params` when generating a single shared transformation function. Prior to this commit, if the `IRModule` already contained a function with that name, an error would be raised. After this commit, the `LiftTransformParams` pass will instead check for existing functions, and compose the previous transformation function with the newly-lifted transformation. This allows `LiftTransformParams` to be used alongside a hand-written parameter transformation. Closes apache#17200
Circling back to this issue, it should be resolved with PR #17314. |
The `LiftTransformParams` pass produces additional functions, either named `$FOO_transform_params` when generating one transformation function per inference function, or `transform_params` when generating a single shared transformation function. Prior to this commit, if the `IRModule` already contained a function with that name, an error would be raised. After this commit, the `LiftTransformParams` pass will instead check for existing functions, and compose the previous transformation function with the newly-lifted transformation. This allows `LiftTransformParams` to be used alongside a hand-written parameter transformation. Closes apache#17200
Actual behavior
Environment
Steps to reproduce
cc @junrushao
The text was updated successfully, but these errors were encountered: