Commit 85bd01d
authored
Add a16w8 per-op test for gelu (#19598)
Summary:
Add int16 activation / int8 weight (a16w8) quantization tests for
`aten.gelu` on Ethos-U55 and Ethos-U85.
## Changes
- Add `test_gelu_a16w8_u55_INT` using `EthosU55PipelineINT` with
`a16w8_quantization=True, symmetric_io_quantization=True, qtol=128,
epsilon=2**-16`, reusing existing `Gelu.test_data` parameters (12 test
configurations covering both \`none\` and \`tanh\` approximation modes)
- Add `test_gelu_a16w8_u85_INT` using `EthosU85PipelineINT` with same
kwargs
- Register `ops/test_gelu.py` in `fbcode/` and `xplat/` `targets.bzl`
bypass-pytorch-oss-checks
Reviewed By: Ninja91
Differential Revision: D1045323591 parent 1d754c8 commit 85bd01d
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments