Remove unused

This commit is contained in:
Nicolas Mowen 2025-09-27 07:28:48 -06:00
parent cacdf6bb84
commit a5488f6a90
2 changed files with 1 additions and 4 deletions

View File

@ -430,9 +430,7 @@ def get_optimized_runner(
if rknn_path:
return RKNNModelRunner(rknn_path)
providers, options = get_ort_providers(
device == "CPU", device, model_path=model_path, **kwargs
)
providers, options = get_ort_providers(device == "CPU", device, **kwargs)
if providers[0] == "CPUExecutionProvider":
# In the default image, ONNXRuntime is used so we will only get CPUExecutionProvider

View File

@ -287,7 +287,6 @@ def get_ort_providers(
force_cpu: bool = False,
device: str | None = "AUTO",
requires_fp16: bool = False,
model_path: str | None = None,
) -> tuple[list[str], list[dict[str, Any]]]:
if force_cpu:
return (