-
Notifications
You must be signed in to change notification settings - Fork 128
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
StableHLO to adopt signful integer semantics #22
Comments
The spec draft is now signful, the dialect (forked from MHLO) and the interpreter (synced with the dialect) are signless at the moment. |
Last week worked mostly on adding specs and designing interpreters. No work related to this issue. I will try to prioritize this by the end of this week. |
Updating the StableHLO dialect will be a lot of work, especially given the implications for the interop, so it'll take quite a bit of time. Given the near-term focus on completing the spec, unassigning this ticket for now. |
As Gunhyun pointed out in a nearby PR, we should do that until #22 is fixed.
As Gunhyun pointed out in a nearby PR, we should do that until openxla#22 is fixed.
As Gunhyun pointed out in a nearby PR, we should do that until #22 is fixed.
As Gunhyun pointed out in a nearby PR, we should do that until #22 is fixed.
This bug is a consequence of two pending items on the StableHLO side: * SignedIntegerType from the spec modelled as signless IntegerType from MLIR (instead of being expressed as signed integers in the first place: openxla/stablehlo#22). * BooleanType from the spec modelled as IntegerType from MLIR (this has already led to some amount of confusion in the past: openxla/stablehlo#308). The fix addresses this by patching matchInts to correctly consider i1 to be unsigned. As a sidenote, it would be great to eventually migrate shape computations to use the index type in MLIR. This way we won't need to spuriously constant fold unrelated integer computations like this one. It's likely going to be a lot of work on the StableHLO side though, so we probably shouldn't expect this in the near future. PiperOrigin-RevId: 549213507
This bug is a consequence of two pending items on the StableHLO side: * SignedIntegerType from the spec modelled as signless IntegerType from MLIR (instead of being expressed as signed integers in the first place: openxla/stablehlo#22). * BooleanType from the spec modelled as IntegerType from MLIR (this has already led to some amount of confusion in the past: openxla/stablehlo#308). The fix addresses this by patching matchInts to correctly consider i1 to be unsigned. As a sidenote, it would be great to eventually migrate shape computations to use the index type in MLIR. This way we won't need to spuriously constant fold unrelated integer computations like this one. It's likely going to be a lot of work on the StableHLO side though, so we probably shouldn't expect this in the near future. PiperOrigin-RevId: 549213507
This bug is a consequence of two pending items on the StableHLO side: * SignedIntegerType from the spec modelled as signless IntegerType from MLIR (instead of being expressed as signed integers in the first place: openxla/stablehlo#22). * BooleanType from the spec modelled as IntegerType from MLIR (this has already led to some amount of confusion in the past: openxla/stablehlo#308). The fix addresses this by patching matchInts to correctly consider i1 to be unsigned. As a sidenote, it would be great to eventually migrate shape computations to use the index type in MLIR. This way we won't need to spuriously constant fold unrelated integer computations like this one. It's likely going to be a lot of work on the StableHLO side though, so we probably shouldn't expect this in the near future. PiperOrigin-RevId: 549213507
StableHLO, as bootstrapped from MHLO, inherits signless integers which was added in MHLO for some legacy reasons. The goal here is for StableHLO to adopt signfull semantics instead with signed and unsigned integer variants.
The text was updated successfully, but these errors were encountered: