torch-mlir/test/Conversion/TorchToTosa
Srinath Avadhanula 0f80e75c2e
allow tosa.cast to convert from f32 to f16 (#2934)
According to the [official TOSA
spec](https://www.mlplatform.org/tosa/tosa_spec.html#_cast), `tosa.cast`
allows a cast from `fp32` to `fp16`. We were not previously accounting
for this in the `TorchToTosa` lowering.

Also did a tiny bit of cleanup in the code to make it easier to spot
which conversions are currently allowed.

---------

Co-authored-by: Srinath Avadhanula <srinath.avadhanula@getcruise.com>
2024-02-20 14:22:38 -08:00
..
basic.mlir torch-to-tosa lowering support for AtenLinalgVectorNormOp (#2734) 2024-01-18 12:32:23 -08:00
cast_fp32_to_fp16.mlir allow tosa.cast to convert from f32 to f16 (#2934) 2024-02-20 14:22:38 -08:00
conv2d_transpose.mlir [torch-mlir][conversion-test] cleanup trailing whitespace in mlir files (#2807) 2024-01-25 14:24:28 -08:00
torch-backend-to-tosa-backend-pipeline.mlir Update llvm-project to b44b3494f60296db6aca38a14cab061d9b747a0a (#2511) 2023-10-16 19:29:48 -07:00