forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Contrib][ONNX] Handle removal of onnx.utils.polish_model (apache#9178)
Onnx 1.9 removed optimizers from the core repository (see discussion in onnx/onnx#2834), including onnx.utils.polish_model, breaking RelayToONNXConverter. This PR add onnxoptimizer.optimize as a fallback method if onnx.utils.polish_model is unavailable. Also updates tutorials/documentation to recommend installing onnxoptimizer when installing onnx, because the current PyPI version of onnx is above version 1.9.
- Loading branch information
1 parent
16c6636
commit 1a8bf9d
Showing
4 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters