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

[Relax][Bugfix] FCallPacked not checked in CodegenVMTIR #17073

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, an operator's FCallPacked attribute, used to specify a 1:1 mapping between a relax operator and a PackedFunc that implements it, was only checked in CodegenVM. Any operator with FCallPacked would raise an error when compiled using CodegenVMTIR.

This commit removes the FCallPacked handling from CodegenVM altogether, and instead checks for this attribute as part of LegalizeOps. This provides the same functionality across both backends.

Prior to this commit, an operator's `FCallPacked` attribute, used to
specify a 1:1 mapping between a relax operator and a `PackedFunc` that
implements it, was only checked in `CodegenVM`.  Any operator with
`FCallPacked` would raise an error when compiled using `CodegenVMTIR`.

This commit removes the `FCallPacked` handling from `CodegenVM`
altogether, and instead checks for this attribute as part of
`LegalizeOps`.  This provides the same functionality across both
backends.
@Lunderberg
Copy link
Contributor Author

@tvm-bot rerun

@Lunderberg Lunderberg requested a review from yongwww June 18, 2024 18:59
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.

None yet

1 participant