Skip to content

Commit

Permalink
Install onnx package (Kaggle#1170)
Browse files Browse the repository at this point in the history
http:https://b/235510037
  • Loading branch information
Philmod committed Jun 15, 2022
1 parent 5a4cb0e commit aef6592
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ RUN pip install flashtext && \
# ipympl adds interactive widget support for matplotlib
pip install ipympl==0.7.0 && \
pip install pandarallel && \
pip install onnx && \
/tmp/clean-layer.sh

# Download base easyocr models.
Expand Down
Binary file added tests/data/mnist-8.onnx
Binary file not shown.
8 changes: 8 additions & 0 deletions tests/test_onnx.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import unittest

import onnx

class TestOnnx(unittest.TestCase):
def test_load(self):
model = onnx.load("/input/tests/data/mnist-8.onnx")
self.assertIn("CNTKGraph", onnx.helper.printable_graph(model.graph))

0 comments on commit aef6592

Please sign in to comment.