Commit 156aa59
[Relay][Frontend][ONNX] New Operators and Opsets to Support BERT (#4197)
* Added slice v10
* Added constantofshape operation and small refactor.
* Finished one_hot implementation.
* Reshape working across all bert layers.
* Fixed constantofshape and removed code duplication.
* onnx model fully ingested.
* Working on improving onnx tests.
* Changed onnx testing to use onnxruntime instead of caffe2, also formatted.
* Add arbitrary output nodes to onnx frontend.
* Added v6 tiling for bert squad 8 support.
* Small syntax fixes
* Reduced code duplication in split opset versions.
* Added batch matmul test
* Added unstack split testing.
* Adde onehot test, needs a little cleanup probably.
* Replaced deprecated constant fill with constantofshape and updated tests accordingly.
* Added tests for new opset version of slice and tile.
* lint clean up
* Lint fixes
* Changed onnx dependency
* Went back to caffe2 runtime for CI integration.
* Rebase and small typo/syntax changes.
* Added hard casting of onehot attributes to int.1 parent 71f39be commit 156aa59
File tree
4 files changed
+744
-381
lines changed- python/tvm/relay/frontend
- tests/python/frontend/onnx
4 files changed
+744
-381
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
474 | 476 | | |
475 | 477 | | |
476 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
477 | 523 | | |
478 | 524 | | |
479 | 525 | | |
| |||
0 commit comments