Skip to content

etnaviv: Support convolutions on signed 8-bit tensors

Philipp Zabel requested to merge pH5/mesa:imx8mp-signed-conv2d into main

The hardware only supports uint8_t, but with the configurable zero point we can just shift input tensors into uint8_t range, adapt zero points and convolution weigths accordingly, and shift back output tensors into int8_t range. In the future, this could be accelerated with SH, and possibly fused with adjacent quant or transpose operations.

Based on !31842 (merged).

@tomeu

Merge request reports

Loading