Commit ab75b58
authored
[Bug][Relay] fix relay frontend pytorch op addmm bug (#15294)
* Update pytorch.py
fix relay frontend pytorch op: addmm
calculation formula error.
bug:
out = input + alpha * beta * mat1 @ mat2
fix bug:
out = beta * input + alpha * mat1 @ mat2
* add relay frontend pytorch addmm op test
* fix relay frontend pytorch op addmm
* add relay frontend pytorch addmm op test1 parent ae3de3d commit ab75b58
File tree
2 files changed
+19
-9
lines changed- python/tvm/relay/frontend
- tests/python/frontend/pytorch
2 files changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
1552 | | - | |
1553 | 1552 | | |
1554 | | - | |
1555 | 1553 | | |
1556 | 1554 | | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1557 | 1560 | | |
1558 | 1561 | | |
1559 | 1562 | | |
1560 | | - | |
| 1563 | + | |
1561 | 1564 | | |
1562 | 1565 | | |
1563 | 1566 | | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
| 1567 | + | |
1570 | 1568 | | |
1571 | 1569 | | |
1572 | 1570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5260 | 5260 | | |
5261 | 5261 | | |
5262 | 5262 | | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
| 5268 | + | |
| 5269 | + | |
| 5270 | + | |
| 5271 | + | |
| 5272 | + | |
| 5273 | + | |
| 5274 | + | |
5263 | 5275 | | |
5264 | 5276 | | |
5265 | 5277 | | |
| |||
0 commit comments