Commit 2eea7f8
committed
[FRONTEND][ONNX] Make bias input optional in LayerNormalization
This change updates the LayerNormalization converter to support ONNX
models where the optional bias input is not provided.
When bias is missing, an empty bias tensor is generated.
This behavior aligns with the ONNX’s spec for LayerNormalization (opset 17+) where
the bias input is officially optional.1 parent b77f948 commit 2eea7f8
File tree
2 files changed
+22
-0
lines changed- python/tvm/relax/frontend/onnx
- tests/python/relax
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2489 | 2489 | | |
2490 | 2490 | | |
2491 | 2491 | | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
2492 | 2496 | | |
2493 | 2497 | | |
2494 | 2498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1303 | 1303 | | |
1304 | 1304 | | |
1305 | 1305 | | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
1306 | 1324 | | |
1307 | 1325 | | |
1308 | 1326 | | |
| |||
0 commit comments