Skip to content

Commit f673259

Browse files
fix error type
1 parent 7f869c7 commit f673259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/v2/functional/_type_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _import_cvcuda_modules():
2525

2626
return cvcuda
2727
except ImportError as e:
28-
raise RuntimeError(
28+
raise ImportError(
2929
"CV-CUDA is required but not installed. "
3030
"Please install it following the instructions at "
3131
"https://github.com/CVCUDA/CV-CUDA or via pip: "

0 commit comments

Comments
 (0)