llvm-project
cf3b0368 - [mlir][tosa][tosa-to-linalg] Add NaN Mode Lowering (#125668)

Commit
198 days ago
[mlir][tosa][tosa-to-linalg] Add NaN Mode Lowering (#125668) Add support for NaN propagation lowering in the `tosa-to-linalg` and `tosa-to-linalg-named` conversions by conditionally checking for NaN in the case of ignore semantics and materializing the appropriate select operations. Note that the default behviour of "propagate" matches that of the arith dialect and so in that case we can avoid creating the checks altogether. Add appropriate lit tests including negative tests which check the various comparisons and selects are materialized as appropriate. This affects the following TOSA operators: * arg_max * max_pool_2d * clamp * reduce_max * reduce_min * maximum * minimum Signed-off-by: Jack Frankland <jack.frankland@arm.com>
Author
Parents
Loading