[all-commits] [llvm/llvm-project] ede40d: [mlir][tensor] Add check for indices of `tensor.ga...

Longsheng Mou via All-commits all-commits at lists.llvm.org
Thu Sep 5 19:46:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ede40da1f8c1e91601b985cd32ad785aa8806880
      https://github.com/llvm/llvm-project/commit/ede40da1f8c1e91601b985cd32ad785aa8806880
  Author: Longsheng Mou <longshengmou at gmail.com>
  Date:   2024-09-06 (Fri, 06 Sep 2024)

  Changed paths:
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/invalid.mlir

  Log Message:
  -----------
  [mlir][tensor] Add check for indices of `tensor.gather` (#106894)

This patch add a check for indices of `tensor.gather` and
`tensor.scatter`. For that the length of gather_dims/scatter_dims should
match the size of last dimension of the indices. Fix #94901.



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