[all-commits] [llvm/llvm-project] ed22bf: [mlir][linalg] Fix weight dimension ordering in 2D...

Felix Schneider via All-commits all-commits at lists.llvm.org
Fri Dec 1 13:16:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed22bf69917479034aa4d2d42cbd9cb9d59cc0ae
      https://github.com/llvm/llvm-project/commit/ed22bf69917479034aa4d2d42cbd9cb9d59cc0ae
  Author: Felix Schneider <fx.schn at gmail.com>
  Date:   2023-12-01 (Fri, 01 Dec 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
    M mlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
    M mlir/test/Dialect/Linalg/named-ops.mlir

  Log Message:
  -----------
  [mlir][linalg] Fix weight dimension ordering in 2D grouped conv (#73855)

The `conv_2d_ngchw_fgchw` Op implements 2d grouped convolution with
dimensions ordered as given in the name. However, the current
implementation orders weights as `gfchw` instead of `fgchw`. This was
already pointed out in an old phabricator revision which never landed:
https://reviews.llvm.org/D150064

This patch
1) Adds a new op `conv_2d_ngchw_gfchw`
2) Fixes the dimension ordering of the old op `conv_2d_ngchw_fgchw`
3) Adds tests with non-dynamic dimensions so that it's easier to
  understand.




More information about the All-commits mailing list