[all-commits] [llvm/llvm-project] 37263b: [mlir][tosa] Add verifier for `tosa.pad` (#106351)

Longsheng Mou via All-commits all-commits at lists.llvm.org
Tue Sep 3 19:24:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37263b6c6741894ffbc0f61979c5c85db515ef2d
      https://github.com/llvm/llvm-project/commit/37263b6c6741894ffbc0f61979c5c85db515ef2d
  Author: Longsheng Mou <moulongsheng at huawei.com>
  Date:   2024-09-04 (Wed, 04 Sep 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/test/Dialect/Tosa/invalid.mlir

  Log Message:
  -----------
  [mlir][tosa] Add verifier for `tosa.pad` (#106351)

This patch adds verifier to `tosa.pad` which fixes a crash. `tosa.pad`
expect:
- same input and output tensor rank.
- 'padding' tensor rank equal to 2.

Fix #106168.



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