lele-cecere
commited on
Commit
•
797807b
1
Parent(s):
d2150eb
changed dependencies
Browse files
main.py
CHANGED
@@ -31,6 +31,7 @@ from examples_metadata import (
|
|
31 |
logging.basicConfig(level=logging.DEBUG)
|
32 |
os.system("pip list")
|
33 |
#print Cuda version
|
|
|
34 |
nvmlInit()
|
35 |
print(pynvml.nvmlSystemGetCudaDriverVersion())
|
36 |
cuda_version = torch.version.cuda
|
@@ -202,6 +203,8 @@ if torch.cuda.is_available():
|
|
202 |
else:
|
203 |
print("CUDA is not available. Using CPU.")
|
204 |
|
|
|
|
|
205 |
|
206 |
def generateTags():
|
207 |
start = time.time()
|
|
|
31 |
logging.basicConfig(level=logging.DEBUG)
|
32 |
os.system("pip list")
|
33 |
#print Cuda version
|
34 |
+
print("Gpu Cuda Driver Version:")
|
35 |
nvmlInit()
|
36 |
print(pynvml.nvmlSystemGetCudaDriverVersion())
|
37 |
cuda_version = torch.version.cuda
|
|
|
203 |
else:
|
204 |
print("CUDA is not available. Using CPU.")
|
205 |
|
206 |
+
torch.zeros(1).cuda()
|
207 |
+
|
208 |
|
209 |
def generateTags():
|
210 |
start = time.time()
|