You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by le...@apache.org on 2021/12/10 13:24:54 UTC

[tvm] branch main updated: [ONNX][Converter] Fix when onnxoptimizer is unavailable (#9700)

This is an automated email from the ASF dual-hosted git repository.

leandron pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new aa99699  [ONNX][Converter] Fix when onnxoptimizer is unavailable (#9700)
aa99699 is described below

commit aa99699e532ec8c60afd552e951d238b481c4b5d
Author: Colin Y. Li <cy...@live.com>
AuthorDate: Fri Dec 10 21:24:15 2021 +0800

    [ONNX][Converter] Fix when onnxoptimizer is unavailable (#9700)
---
 python/tvm/contrib/target/onnx.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/contrib/target/onnx.py b/python/tvm/contrib/target/onnx.py
index 2b142dc..272598f 100644
--- a/python/tvm/contrib/target/onnx.py
+++ b/python/tvm/contrib/target/onnx.py
@@ -59,7 +59,7 @@ def run_onnx_optimizer(onnx_model):
     else:
         return onnxoptimizer.optimize(onnx_model)
 
-    return model
+    return onnx_model
 
 
 def tvm_array_to_list(arr):