Skip to content

Instantly share code, notes, and snippets.

@mkolod
Created June 25, 2020 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mkolod/ae6d26d2de5bbc0b9ec3be8c3a6b71d1 to your computer and use it in GitHub Desktop.
Save mkolod/ae6d26d2de5bbc0b9ec3be8c3a6b71d1 to your computer and use it in GitHub Desktop.
import onnx
import sys
name = sys.argv[1]
model = onnx.load(name)
onnx.checker.check_model(model)
print(onnx.helper.printable_graph(model.graph))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment