Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nightly test issues. #2229

Merged
merged 1 commit into from
Aug 25, 2023
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
3 changes: 2 additions & 1 deletion ci_build/azure_pipelines/templates/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ steps:

if [[ $CI_TF_VERSION == 2.* ]] ;
then
pip install onnxruntime-extensions==0.3.1
pip install onnxruntime-extensions

if [[ $CI_TF_VERSION == 2.3* ]] ;
then
pip install tensorflow-text==${CI_TF_VERSION}
Expand Down
5 changes: 3 additions & 2 deletions tests/test_einsum_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ def common_einsum(self, equation, operands=None, catch_errors=True):
new_model_proto = self.run_einsum_compare(["Y"], feed_dict, model_proto,
catch_errors=catch_errors)

sess1 = InferenceSession(model_proto.SerializeToString())
sess2 = InferenceSession(new_model_proto.SerializeToString())
providers = ['CPUExecutionProvider']
sess1 = InferenceSession(model_proto.SerializeToString(), providers=providers)
sess2 = InferenceSession(new_model_proto.SerializeToString(), providers=providers)
got1 = sess1.run(None, feed_dict)
got2 = sess2.run(None, feed_dict)
assert_almost_equal(got1, got2)
Expand Down