-
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
[Draft][FFI] Remove backwards-compatibility unwrapping of IntImm #17241
base: main
Are you sure you want to change the base?
[Draft][FFI] Remove backwards-compatibility unwrapping of IntImm #17241
Conversation
The initial commit in this PR branch only removes the backwards-compatibility handler, and does not yet update any callers. This is expected to trigger breakage in CI, which will identify the callers that must be updated. |
a721e35
to
cf1b599
Compare
would be great to followup on this one |
Agreed, though unfortunately I haven't had time to do so. It looks like the current failures are in the relay/collage C++ testing, but I haven't looking into it. |
Given these are legacy. I think we can remove those tests to move forward |
This is a follow-up PR to apache#16183, which updated the FFI with explicit integer types. As part of that change, many internal functions were updated to accept non-IR types (e.g. `Array<runtime::Int>` instead of `Array<IntImm>`). For backwards compatibility with callees that provided the IR types, a specialization of `PackedFuncValueConverter` unwrapped the `IntImm` into a `runtime::Int`. This commit removes the backwards-compatibility specialization of `PackedFuncValueConverter`. Breakages that are found in CI as a result will then be updated at the caller side, removing the need for the backwards-compatibility handler altogether.
cf1b599
to
2e187d7
Compare
would be great to check the remaining errors and get this in |
This is a follow-up PR to #16183, which updated the FFI with explicit integer types. As part of that change, many internal functions were updated to accept non-IR types (e.g.
Array<runtime::Int>
instead ofArray<IntImm>
). For backwards compatibility with callees that provided the IR types, a specialization ofPackedFuncValueConverter
unwrapped theIntImm
into aruntime::Int
.This commit removes the backwards-compatibility specialization of
PackedFuncValueConverter
. Breakages that are found in CI as a result will then be updated at the caller side, removing the need for the backwards-compatibility handler altogether.