Commit fad5352
[mlir][tosa] Add several level checks
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: TatWai Chong <[email protected]>
Change-Id: I797fafe504219e43950824c04839c7187065fe8e1 parent 71f4c7d commit fad5352
File tree
2 files changed
+1036
-119
lines changed- mlir
- lib/Dialect/Tosa/Transforms
- test/Dialect/Tosa
2 files changed
+1036
-119
lines changed
0 commit comments