torch-mlir/test/Conversion/TorchToTosa
Christopher McGirr b461daa06e
fix(TorchToTosa.cpp): adjust torch->tosa div conversion (#2200)
check the return type of the division to figure out whether to use
the floating point implementation of a division or to use the integer.

the issue rose from the fact that the inputs are all integer but the
result was casted to floating point. The conversion then chose to
use the integer implementation of division which is not legal in tosa
when all the inputs get casted to floating point.

fix(TorchToLinalg): AtenDivScalarOp

upcast self operand as well if applicable, the self operand must also
be casted to float as it can be an integer.
2023-06-12 11:18:38 +02:00
..
basic.mlir Integrate LLVM 2023-05-09 10:14:27 -07:00
torch-backend-to-tosa-backend-pipeline.mlir fix(TorchToTosa.cpp): adjust torch->tosa div conversion (#2200) 2023-06-12 11:18:38 +02:00