Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

explicitly set ORT providers on all InferenceSession creations #1262

Merged
merged 1 commit into from
Sep 21, 2023
Merged
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
4 changes: 3 additions & 1 deletion tests/utils/engine_mocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def __init__(
with override_onnx_batch_size(
model_path, batch_size, inplace=True
) as batched_model_path:
session = ort.InferenceSession(batched_model_path)
session = ort.InferenceSession(
batched_model_path, providers=["CPUExecutionProvider"]
)
self.input_descriptors = list(map(_to_descriptor, session.get_inputs()))
self.output_descriptors = list(map(_to_descriptor, session.get_outputs()))

Expand Down