first commit

This commit is contained in:
Jefferyhcool
2025-04-13 17:44:54 +08:00
commit 0e0b8da317
112 changed files with 4397 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
def is_cuda_available() -> bool:
try:
import torch
return torch.cuda.is_available()
except ImportError:
return False
def is_torch_installed() -> bool:
try:
import torch
return True
except ImportError:
return False