torch-mlir/lib/Dialect/Torch/Utils
Ramiro Leal-Cavazos d849cbad14
Make `getTypeForScalarType` safer by returning `FailureOr<Type>` (#1814)
One of the potential values for a `torch_upstream::ScalarType` is
`Undefined`. This means that conversion of a `ScalarType` to another
type is a computation that can fail. To enforce handling of the
failure case, this commit makes the two helper functions that convert
`ScalarType`s into other types return `failure()` when the
`ScalarType` is `Undefined`.
2023-01-20 18:40:13 +00:00
..
CMakeLists.txt mlir: add missing dependency on TableGen targets (#1537) 2022-11-01 14:59:11 -05:00
TorchUpstream.cpp Add type promotion code to refine types. 2021-10-29 11:17:39 -04:00
Utils.cpp Make `getTypeForScalarType` safer by returning `FailureOr<Type>` (#1814) 2023-01-20 18:40:13 +00:00