You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen here, we don't have support for getScalarTypeForType. Also, the error message not very informative: it just says unhandled type for getScalarTypeForType without specifying what the unsupported type is.
Implementing this also requires modifying this ScalarType enum in TorchUpstream.h:
Instead of
`Unhandled type in getScalarTypeForType`
You now get
Unhandled type in getScalarTypeForType: (type name)
Type properties:
Is integer: yes
Bit width:
...
The root cause is #3720, at
least for unsigned integer issues.
torch-mlir/lib/Dialect/Torch/Utils/Utils.cpp
Lines 47 to 100 in b3942ff
As seen here, we don't have support for getScalarTypeForType. Also, the error message not very informative: it just says
unhandled type for getScalarTypeForType
without specifying what the unsupported type is.Implementing this also requires modifying this ScalarType enum in TorchUpstream.h:
torch-mlir/include/torch-mlir/Dialect/Torch/Utils/TorchUpstream.h
Lines 88 to 98 in b3942ff
which is not up to date compared to the ScalarType.h in the pytorch/pytorch repo:
https://github.com/pytorch/pytorch/blob/main/c10/core/ScalarType.h#L84-L93
Related issue where this prevents supporting certain onnx dtypes: #3255
The text was updated successfully, but these errors were encountered: