Commit 63eedd9
committed
[mlir][tosa] Allow conv ops zero point to be variable
The TOSA specification allows the zero point of conv ops to be
variable when the dynamic extension is being used, but information
about which extensions are in use is only known when the validation
pass is run. A variable zero point should be allowed in the conv ops
verifiers.
In terms of testing, there didn't seem to be an existing set of tests
for the verififers to add this check to, so the opportunity has been
taken to run the verifiers on the tests in `ops.mlir`. Since the conv2d
test there had variable zero points, this change in functionality is
being tested.
Change-Id: I2cb5533a6a059290641f2e145f28c712eada0dd7
Signed-off-by: Luke Hutton <[email protected]>1 parent 3a6108b commit 63eedd9
File tree
2 files changed
+3
-5
lines changed- mlir
- lib/Dialect/Tosa/IR
- test/Dialect/Tosa
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
| 294 | + | |
297 | 295 | | |
298 | 296 | | |
299 | | - | |
| 297 | + | |
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments