Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 4edf53c

Browse files
authored
Pin numpy<=1.19.5 in requirement_dev (#689)
* test * Deprecate python 3.5 CI (update to 3.6) (#686)
1 parent 4d7e526 commit 4edf53c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
numpy<=1.19.5
12
pillow
23
pytest
34
onnxruntime

tests/test_layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,7 @@ def test_masking(runner, rnn_class):
23872387
onnx_model = keras2onnx.convert_keras(model, model.name)
23882388
x = np.random.uniform(100, 999, size=(2, 3, 5)).astype(np.float32)
23892389
expected = model.predict(x)
2390-
assert runner(onnx_model.graph.name, onnx_model, x, expected)
2390+
assert runner(onnx_model.graph.name, onnx_model, x, expected, rtol=5e-3)
23912391

23922392

23932393
@pytest.mark.parametrize("rnn_class", RNN_CLASSES)

0 commit comments

Comments
 (0)