torch-mlir/lib/Dialect/Torch
zjgarvey de28c8540b
[ONNX] add int16 quantization support (#3446)
There is currently no int16 quantization support in torch. This patch
adds a new mlir type to correspond to the missing "torch.qint16" type,
and enables lowering of quantization-related onnx ops using int16 types.

In follow-up patches, custom quantization logic for ops like
aten.matmul/aten.mm/aten.convolution may need to be revisited to allow
support for qint16. The passes in FuseQuantizedOps.cpp may also need
slight modifications.
2024-06-12 10:37:22 +05:30
..
IR [ONNX] add int16 quantization support (#3446) 2024-06-12 10:37:22 +05:30
Transforms [ONNX] add int16 quantization support (#3446) 2024-06-12 10:37:22 +05:30
Utils [ONNX] add int16 quantization support (#3446) 2024-06-12 10:37:22 +05:30
CMakeLists.txt E2e support for aten.softmax.int and aten.embedding 2021-10-18 17:57:45 -04:00