bybit REST api

This commit is contained in:
Dobromir Popov
2025-07-14 22:57:02 +03:00
parent ee2e6478d8
commit 02804ee64f
4 changed files with 476 additions and 41 deletions

View File

@ -221,7 +221,7 @@ class DQNAgent:
# Check if mixed precision training should be used
if torch.cuda.is_available() and hasattr(torch.cuda, 'amp') and 'DISABLE_MIXED_PRECISION' not in os.environ:
self.use_mixed_precision = True
self.scaler = torch.cuda.amp.GradScaler()
self.scaler = torch.amp.GradScaler('cuda')
logger.info("Mixed precision training enabled")
else:
self.use_mixed_precision = False