Skip to content
Commit 1c5fd153 authored by Krzysztof Drewniak's avatar Krzysztof Drewniak
Browse files

[mlir][Tosa] Allow non-fp32 tosa.cast to integers

Fix the lowering of tosa.cast to create attributes of the input source
type when casting from floats to integers.

This is motivated by the need to cast fp16 to i9, which we have
encountered in certain quantized models.

Reviewed By: eric-k256, jpienaar

Differential Revision: https://reviews.llvm.org/D158738
parent bcc88116
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment