torch-mlir/lib/Conversion/TorchOnnxToTorch
Rob Suderman 306ed62edd
[onnx][torch] Fix `onnx.SoftmaxCrossEntropyLoss` for ignore index (#3585)
There were two issues related to `ignore_index` being set

(1) the onnx-to-linalg pass as not reading the value correctly (2) the
mean pass was not considering the `ignore_index` value

For (2) when taking the mean we need to know how many of the values were
considered in the sum and therefore we cannot divide by the total number
of elements. Adding a summation across the total number should correct
this issue.
2024-08-02 09:00:56 -07:00
..
CMakeLists.txt Support onnx.GRU and onnx.RNN (#3447) 2024-07-10 14:04:17 -04:00
DefaultDomainAtoF.cpp [ONNX] Reduce Onnx.Flatten op version (#3560) 2024-07-24 21:27:20 +05:30
DefaultDomainGtoP.cpp [ONNX] Add OnnxToTorch lowering for NonMaxSuppression op (#3501) 2024-07-26 21:01:27 +05:30
DefaultDomainQtoZ.cpp [onnx][torch] Fix `onnx.SoftmaxCrossEntropyLoss` for ignore index (#3585) 2024-08-02 09:00:56 -07:00
OnnxRecurrentLayerOpExpanders.cpp Support onnx.GRU and onnx.RNN (#3447) 2024-07-10 14:04:17 -04:00
PassDetail.h Initial TorchOnnxToTorch conversion pipeline. (#2585) 2023-11-21 21:02:55 -08:00
Passes.cpp Initial TorchOnnxToTorch conversion pipeline. (#2585) 2023-11-21 21:02:55 -08:00
Patterns.cpp Initial TorchOnnxToTorch conversion pipeline. (#2585) 2023-11-21 21:02:55 -08:00
TorchOnnxToTorch.cpp Initial TorchOnnxToTorch conversion pipeline. (#2585) 2023-11-21 21:02:55 -08:00
Utils.cpp Support onnx.GRU and onnx.RNN (#3447) 2024-07-10 14:04:17 -04:00