[all-commits] [llvm/llvm-project] 58fa84: [mlir][tosa] Handle tosa.resize nearest rounding c...

Rob Suderman via All-commits all-commits at lists.llvm.org
Mon Dec 5 13:11:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58fa8426fff78fcc18393d2842907a556006ec93
      https://github.com/llvm/llvm-project/commit/58fa8426fff78fcc18393d2842907a556006ec93
  Author: Rob Suderman <suderman at google.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-resize.mlir

  Log Message:
  -----------
  [mlir][tosa] Handle tosa.resize nearest rounding correctly

Rounding of tosa.resize did not handle rounding to the nearest pixel correctly.
Rather than dividing the scale by 2 we should double the partial pixel to
guarantee we include a check on the lowest bit.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D139162




More information about the All-commits mailing list