Typo in if torch.cuda.is_available
This commit is contained in:
parent
8af6ec8075
commit
f71aba8a08
@ -360,7 +360,7 @@ def rtm_estimator(config_dict):
|
|||||||
try:
|
try:
|
||||||
import torch
|
import torch
|
||||||
import onnxruntime as ort
|
import onnxruntime as ort
|
||||||
if torch.cuda.is_available() == False and 'CUDAExecutionProvider' in ort.get_available_providers():
|
if torch.cuda.is_available() and 'CUDAExecutionProvider' in ort.get_available_providers():
|
||||||
device = 'cuda'
|
device = 'cuda'
|
||||||
backend = 'onnxruntime'
|
backend = 'onnxruntime'
|
||||||
logging.info(f"\nValid CUDA installation found: using ONNXRuntime backend with GPU.")
|
logging.info(f"\nValid CUDA installation found: using ONNXRuntime backend with GPU.")
|
||||||
|
Loading…
Reference in New Issue
Block a user