[all-commits] [llvm/llvm-project] c94b1a: Revert "[mlir][linalg] Add transform operator for ...

Hsiangkai Wang via All-commits all-commits at lists.llvm.org
Wed Jun 26 07:08:42 PDT 2024


  Branch: refs/heads/users/hsiangkai/winograd-ops-transform
  Home:   https://github.com/llvm/llvm-project
  Commit: c94b1a3d2b30eefaa556b8ddf1f4767d89d72fe0
      https://github.com/llvm/llvm-project/commit/c94b1a3d2b30eefaa556b8ddf1f4767d89d72fe0
  Author: Hsiangkai Wang <hsiangkai.wang at arm.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
    R mlir/test/Dialect/Linalg/transform-winograd-conv2d.mlir

  Log Message:
  -----------
  Revert "[mlir][linalg] Add transform operator for Winograd Conv2D algorithm"

This reverts commit 374b0d5b83ce080bea690199380e270a36ad1c52.


  Commit: 5a391881394094bfd747cb97bf023ed3df06923e
      https://github.com/llvm/llvm-project/commit/5a391881394094bfd747cb97bf023ed3df06923e
  Author: Hsiangkai Wang <hsiangkai.wang at arm.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    R mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
    R mlir/test/Dialect/Linalg/winograd-conv2d.mlir
    M mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp

  Log Message:
  -----------
  Revert "[mlir][linalg] Implement Conv2D using Winograd Conv2D algorithm"

This reverts commit 4240341b4f06f1b77f63b0f619cae3804d88eb68.


  Commit: 690662771c806a2f7301bdc4dedc983047c41d35
      https://github.com/llvm/llvm-project/commit/690662771c806a2f7301bdc4dedc983047c41d35
  Author: Hsiangkai Wang <hsiangkai.wang at arm.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
    A mlir/test/Dialect/Linalg/winograd-conv2d.mlir
    M mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp

  Log Message:
  -----------
  [mlir][linalg] Implement Conv2D using Winograd Conv2D algorithm

Define high level winograd operators and convert conv_2d_nhwc_fhwc into
winograd operators. According to Winograd Conv2D algorithm, we need
three transform operators for input, filter, and output transformation.

The formula of Winograd Conv2D algorithm is

Y = A^T x [(G x g x G^T) @ (B^T x d x B)] x A

filter transform: G x g x G^T
input transform: B^T x d x B
output transform: A^T x y x A

The implementation is based on the paper, Fast Algorithm for
Convolutional Neural Networks. (https://arxiv.org/abs/1509.09308)


  Commit: bb8087930cfd79a3d4ebf6a8e959f4c30bb70fcf
      https://github.com/llvm/llvm-project/commit/bb8087930cfd79a3d4ebf6a8e959f4c30bb70fcf
  Author: Hsiangkai Wang <hsiangkai.wang at arm.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
    A mlir/test/Dialect/Linalg/transform-winograd-conv2d.mlir

  Log Message:
  -----------
  [mlir][linalg] Add transform operator for Winograd Conv2D algorithm

Add a transform operator structured.winograd_conv2d to convert
linalg.conv_2d_nhwc_fhwc to Linalg winograd operators.


  Commit: cc23f43cfab82f1c0b9ddbf6cacd29a20f99d825
      https://github.com/llvm/llvm-project/commit/cc23f43cfab82f1c0b9ddbf6cacd29a20f99d825
  Author: Hsiangkai Wang <hsiangkai.wang at arm.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/test/Dialect/Linalg/transform-winograd-conv2d.mlir

  Log Message:
  -----------
  Address ftynse's comments


Compare: https://github.com/llvm/llvm-project/compare/374b0d5b83ce...cc23f43cfab8

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list