Issue 233457
Summary [mlir][tosa] Migrate constant input checks in operator verifiers to `tosa-validate` pass
Labels mlir:tosa
Assignees
Reporter lhutton1
    https://github.com/llvm/llvm-project/pull/233064 raised an issue with the current operator verifier in TOSA. Specifically, some currently violate the rule that verifiers should only check invariants "local" to an operation. TOSA operator verifiers currently check ERROR_IF conditions (see TOSA specification) on constant operand inputs.

This issue is to track the removal of such checks from the verifiers. They should instead be moved into the `tosa-validate` pass, under `applyErrorIfCheck`. Note: In some cases the error if check exists and removal from the verifier may be all that's needed.

Tracking migration:

- [ ] CONV2D - `input_zp` and `weight_zp`
- [ ] CONV3D - `input_zp` and `weight_zp`
- [ ] DEPTHWISE_CONV2D - `input_zp` and `weight_zp`
- [ ] TRANSPOSE_CONV2D - `input_zp` and `weight_zp`
- [ ] MATMUL - `a_zp` and `b_zp`
- [ ] MATMUL_T - `a_zp` and `b_zp`
- [ ] AVG_POOL2D - `input_zp` and `output_zp`
- [ ] AVG_POOL2D_ADAPTIVE - `input_zp`, `output_zp`, `kernel`, `stride` and `pad`
- [ ] MAX_POOL2D_ADAPTIVE - `kernel`, `stride` and `pad`
- [ ] NEGATE - `input1_zp` and `output_zp`
- [ ] RESCALE - `input_zp` and `output_zp`
- [ ] MUL - `shift`
- [ ] SLICE - `start` and `size`
- [ ] TILE - `multiples`
- [ ] RESHAPE - `shape`
- [ ] ROW_GATHER - `row_count`
- [ ] RESIZE - `scale`, `offset` and `border`
- [ ] SLICE_SHAPE - `start` and `size`
- [x] PAD - `padding` - https://github.com/llvm/llvm-project/pull/233064


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to