Repository navigation
Conversation
zjgarvey
left a comment
There was a problem hiding this comment.
Thanks! Sorry it took a while to get around to this. Will land if CI is green.
c786d47 to
1b2caf9
Compare
zjgarvey
left a comment
There was a problem hiding this comment.
My existing approval is still on the current head (1b2caf9). The complex dtype mapping and regressions remain consistent with ComplexHalf=8, ComplexFloat=9, ComplexDouble=10. Please rebase on main and rerun CI so this can land; GitHub currently reports conflicts. No additional code change requested from this lightweight re-review.
1b2caf9 to
2ec4b77
Compare
Done |
TORCH_DTYPE_TO_INTin the FX importer was off-by-one for the complex dtypes versus the c10ScalarTypeenum inTorchUpstream.h(AT_FORALL_SCALAR_TYPES_WITH_COMPLEX_AND_QINTS):ComplexHalf=8,ComplexFloat=9,ComplexDouble=10.When I export a model with torch.complex128 dtype, I get an Key error. When a model has a complex64 dtype, I can get the .mlir but It cannot be optimized as the constant representing complex64 is not the same as in
TorchUpstream.h.@zjgarvey @stellaraccident