Skip to content

Commit b5d19b8

Browse files
authored
Fix nightly test issues. (#2229)
Signed-off-by: Jay Zhang <[email protected]>
1 parent 37820d9 commit b5d19b8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ci_build/azure_pipelines/templates/setup.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ steps:
2323
2424
if [[ $CI_TF_VERSION == 2.* ]] ;
2525
then
26-
pip install onnxruntime-extensions==0.3.1
26+
pip install onnxruntime-extensions
27+
2728
if [[ $CI_TF_VERSION == 2.3* ]] ;
2829
then
2930
pip install tensorflow-text==${CI_TF_VERSION}

tests/test_einsum_optimizers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ def common_einsum(self, equation, operands=None, catch_errors=True):
9494
new_model_proto = self.run_einsum_compare(["Y"], feed_dict, model_proto,
9595
catch_errors=catch_errors)
9696

97-
sess1 = InferenceSession(model_proto.SerializeToString())
98-
sess2 = InferenceSession(new_model_proto.SerializeToString())
97+
providers = ['CPUExecutionProvider']
98+
sess1 = InferenceSession(model_proto.SerializeToString(), providers=providers)
99+
sess2 = InferenceSession(new_model_proto.SerializeToString(), providers=providers)
99100
got1 = sess1.run(None, feed_dict)
100101
got2 = sess2.run(None, feed_dict)
101102
assert_almost_equal(got1, got2)

0 commit comments

Comments
 (0)