Fix CudaGraph inverse condition

This commit is contained in:
Nicolas Mowen 2025-11-09 06:36:13 -07:00
parent 0bda267a20
commit 138eaf4daa

View File

@ -529,7 +529,7 @@ def get_optimized_runner(
return OpenVINOModelRunner(model_path, device, model_type, **kwargs)
if (
not CudaGraphRunner.is_model_supported(model_type)
CudaGraphRunner.is_model_supported(model_type)
and providers[0] == "CUDAExecutionProvider"
):
options[0] = {