Skip to content

Commit

Permalink
Merge pull request #55 from vespa-engine/lesters/specify-onnx-executi…
Browse files Browse the repository at this point in the history
…on-provider
  • Loading branch information
kkraune authored Sep 21, 2023
2 parents 162e140 + 499ab58 commit 6d879ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learntorank/test_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _predict_with_onnx(onnx_file_path, model_inputs):
os.environ[
"KMP_DUPLICATE_LIB_OK"
] = "True" # required to run on mac https://stackoverflow.com/a/53014308
m = InferenceSession(onnx_file_path)
m = InferenceSession(onnx_file_path, providers=['CPUExecutionProvider'])
(out,) = m.run(input_feed=model_inputs, output_names=["output_0"])
return out

Expand Down

0 comments on commit 6d879ea

Please sign in to comment.