Skip to content
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
7 changes: 7 additions & 0 deletions fastembed/common/onnx_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ def _load_onnx_model(
model_path = model_dir / model_file
# List of Execution Providers: https://onnxruntime.ai/docs/execution-providers

if cuda and providers is not None:
warnings.warn(
f"`cuda` and `providers` are mutually exclusive parameters, cuda: {cuda}, providers: {providers}",
category=UserWarning,
stacklevel=6,
)

if providers is not None:
onnx_providers = list(providers)
elif cuda:
Expand Down
Loading