Skip to content

Commit aef6592

Browse files
authored
Install onnx package (#1170)
http://b/235510037
1 parent 5a4cb0e commit aef6592

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ RUN pip install flashtext && \
511511
# ipympl adds interactive widget support for matplotlib
512512
pip install ipympl==0.7.0 && \
513513
pip install pandarallel && \
514+
pip install onnx && \
514515
/tmp/clean-layer.sh
515516

516517
# Download base easyocr models.

tests/data/mnist-8.onnx

25.8 KB
Binary file not shown.

tests/test_onnx.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import unittest
2+
3+
import onnx
4+
5+
class TestOnnx(unittest.TestCase):
6+
def test_load(self):
7+
model = onnx.load("/input/tests/data/mnist-8.onnx")
8+
self.assertIn("CNTKGraph", onnx.helper.printable_graph(model.graph))

0 commit comments

Comments
 (0)