[all-commits] [llvm/llvm-project] b67b02: [mlir][tosa] Update tosa.avg_pool2d for bit-exact ...

Rob Suderman via All-commits all-commits at lists.llvm.org
Wed Jan 25 10:52:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b67b024d583d328420d7a46f0897e02cdd4ebd68
      https://github.com/llvm/llvm-project/commit/b67b024d583d328420d7a46f0897e02cdd4ebd68
  Author: Rob Suderman <suderman at google.com>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

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

  Log Message:
  -----------
  [mlir][tosa] Update tosa.avg_pool2d for bit-exact TOSA behavior

The normalization component of average pool has a very specific
rounding behavior for compouting the division for floating
point values. Updated so that the bit-exact version is implemented.

Also includes a fix for computing the stride part of the average pool
operation.

Reviewed By: jpienaar

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




More information about the All-commits mailing list