Skip to content

Commit

Permalink
set explicit execution provider (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackTemaki authored Sep 22, 2023
1 parent f6fdaf7 commit aaa51af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_blstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_blstm_onnx_export():
"classes": {0: "batch", 1: "time"},
},
)
session = ort.InferenceSession(f.name)
session = ort.InferenceSession(f.name, providers=["CPUExecutionProvider"])
outputs_onnx = torch.FloatTensor(
session.run(None, {"data": dummy_data.numpy(), "data_len": dummy_data_len.numpy()})[0]
)
Expand Down

0 comments on commit aaa51af

Please sign in to comment.