torch-mlir/lib/Conversion/TorchToTosa
TatWai Chong ed4ecb072f
[tosa] support lowering basic torch binary ops with mixed dtypes (#2122)
Lowering torch operations that allow different compatible data types
in its operands to tosa end up generating invalid tosa IR with mixed
data types. In tosa spec, certain operations (generally element-wise
operations) require all operands to have the same data type.

Add wrapper functions for those element-wise tosa ops to perform op
creation with type conversion if necessary.
2023-05-18 17:12:18 -07:00
..
CMakeLists.txt Fix a few missing dependencies. (#2014) 2023-04-11 11:18:49 -07:00
TorchToTosa.cpp [tosa] support lowering basic torch binary ops with mixed dtypes (#2122) 2023-05-18 17:12:18 -07:00
TosaLegalizeCommon.cpp [tosa] support lowering basic torch binary ops with mixed dtypes (#2122) 2023-05-18 17:12:18 -07:00
TosaLegalizeUtils.cpp [tosa] support lowering basic torch binary ops with mixed dtypes (#2122) 2023-05-18 17:12:18 -07:00