Commit bf0504d
Support approximate gelu (#11246)
Summary:
Pull Request resolved: #11246
GELU accepts an `approximate` argument which is either `none` by default, or `tanh`
When the `approximate` kwarg is present, decompose the op.
We already have an existing test in test_aten_gelu_out to make sure the op is supported.
Reviewed By: zonglinpeng, hsharma35
Differential Revision: D754549991 parent 809a1fd commit bf0504d
File tree
2 files changed
+40
-14
lines changed- backends/cadence/aot
- tests
2 files changed
+40
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2065 | 2065 | | |
2066 | 2066 | | |
2067 | 2067 | | |
2068 | | - | |
2069 | | - | |
| 2068 | + | |
| 2069 | + | |
2070 | 2070 | | |
2071 | | - | |
2072 | | - | |
| 2071 | + | |
2073 | 2072 | | |
2074 | 2073 | | |
2075 | 2074 | | |
| |||
2079 | 2078 | | |
2080 | 2079 | | |
2081 | 2080 | | |
2082 | | - | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
2083 | 2085 | | |
2084 | 2086 | | |
2085 | 2087 | | |
| |||
2414 | 2416 | | |
2415 | 2417 | | |
2416 | 2418 | | |
2417 | | - | |
| 2419 | + | |
2418 | 2420 | | |
2419 | 2421 | | |
2420 | 2422 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1294 | 1302 | | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1295 | 1313 | | |
1296 | 1314 | | |
1297 | | - | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1298 | 1322 | | |
1299 | | - | |
1300 | | - | |
| 1323 | + | |
| 1324 | + | |
1301 | 1325 | | |
1302 | 1326 | | |
1303 | 1327 | | |
| |||
0 commit comments