merge training system

This commit is contained in:
Dobromir Popov
2025-08-23 16:27:05 +03:00
parent 81749ee18e
commit f86457fc38
8 changed files with 166 additions and 8 deletions

View File

@@ -78,6 +78,11 @@ class StandardizedCNN(nn.Module):
# Device management
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
self.to(self.device)
try:
import torch.backends.cudnn as cudnn
cudnn.benchmark = True
except Exception:
pass
logger.info(f"StandardizedCNN '{model_name}' initialized")
logger.info(f"Expected feature dimension: {self.expected_feature_dim}")