mirror of https://github.com/llvm/torch-mlir
d849cbad14
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`. |
||
---|---|---|
.. | ||
torch-mlir | ||
torch-mlir-c | ||
CMakeLists.txt |