Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,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))