[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
Loading
Please sign in to comment