Skip to content

Commit

Permalink
catch onnx checker error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold committed May 15, 2019
1 parent f6e9ef1 commit bc3cbea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,10 @@ def from_onnx(model,
checker.check_model(model)
except ImportError:
pass
except onnx.onnx_cpp2py_export.checker.ValidationError as e:
import warnings
# the checker is a bit violent about errors, so simply print warnings here
warnings.warn(e)
g = GraphProto(shape, dtype)
graph = model.graph
try:
Expand Down

0 comments on commit bc3cbea

Please sign in to comment.