Commit 2658ebe
Dynamic ONNX Importer (#6351)
* Change onnx importer to use dynamic upsampling3d (#3)
fix pylint
* Refactor ONNX frontend to be dynamic
Make OneHot dynamic
Support BatchMatMul with dynamically shaped inputs
fix dynamic broadcast
Add null checks to broadcast_to rel functions
fail more isolated broadcast_to test
use StructuralEqual instead of pointer comparisions in dynamic_to_static pass
add an optional weight freeze argument to onnx importer
convert onnx resize to dynamic op
add dynamic expand to onnx importer
add a shape_func for power
fix BERTSquad, lint
handle onnx graph initializer parameters more intelligently
* Dynamic ONNX importer: Upsampling and Pad (#2)
fix lint
fix Call reference
fix a type issue with expand
fix a bad test refactor
respond to review comments, fix batch matmul tests
* black format
* fix batch matmul test
* add dynamic strided slice to the onnx importer
* fix clip importer
* fix qnn tutorial
* fix bad merge, respond to review comments
* add a simple dynamic model test
* Add dynamic-shaped autopadding to convolution and pooling ops
* fix dynamic issues in a few ops
* fix pylint
* disable tests onnxrt doesn't support
* fix pytorch test
* respond to review comments
* add documentation about partially supporting dynamic shapes
Co-authored-by: Lily Orth-Smith <lorthsmith@octoml.ai>1 parent a413458 commit 2658ebe
File tree
21 files changed
+957
-489
lines changed- include/tvm
- relay
- topi
- python/tvm
- relay
- frontend
- op
- nn
- strategy
- topi
- cuda
- nn
- x86
- src/relay
- backend
- op
- dyn/tensor
- nn
- tensor
- transforms
- tests/python
- frontend/onnx
- relay
- dyn
- tutorials/frontend
21 files changed
+957
-489
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
211 | 222 | | |
212 | 223 | | |
213 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | | - | |
64 | | - | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
0 commit comments