Description
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