[all-commits] [llvm/llvm-project] 956e56: [mlir][tosa] Add several level checks (#129580) (#...

TatWai Chong via All-commits all-commits at lists.llvm.org
Mon Mar 3 18:27:10 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 956e56fa6d3d62e1ef1a27bdc9f6be3c0544b9c7
      https://github.com/llvm/llvm-project/commit/956e56fa6d3d62e1ef1a27bdc9f6be3c0544b9c7
  Author: TatWai Chong <tatwai.chong at arm.com>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

  Changed paths:
    M mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
    M mlir/test/Dialect/Tosa/level_check.mlir

  Log Message:
  -----------
  [mlir][tosa] Add several level checks (#129580) (#129613)

Add the following types of level check to consolidate the level validity
- Complete rank level checks for operations.
- Add MAX_LOG2_SIZE level check: The maximum value is 63 when the
  level is set to "none" and 31 when the level is set to "8K".
- Add MAX_TENSOR_LIST_SIZE level check : The maximum value is 256
  when the level is set to "none" and 64 when the level is set to "8K".
- TOSA 1.0 spec does not allow operations with dynamic shapes, so an
  error should be raised instead.

Co-authored-by: Tai Ly <tai.ly at arm.com>



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