Initial commit

This commit is contained in:
2026-05-01 15:28:10 +02:00
commit 9285ede90a
14 changed files with 566 additions and 0 deletions

14
SetUp.py Normal file
View File

@@ -0,0 +1,14 @@
##
import torch
from torchvision import datasets, transforms, models
def get_device():
if torch.cuda.is_available():
# clear cach to boost memory
# for new round
torch.cuda.empty_cache()
return torch.device("cuda")
else:
return torch.device("cpu")