MISC
This commit is contained in:
@@ -1071,8 +1071,9 @@ class DQNAgent:
|
||||
|
||||
# If no experiences provided, sample from memory
|
||||
if experiences is None:
|
||||
# Skip if memory is too small
|
||||
if len(self.memory) < self.batch_size:
|
||||
# Skip if memory is too small (allow early training for GPU warmup)
|
||||
min_required = min(getattr(self, 'batch_size', 32), 16)
|
||||
if len(self.memory) < min_required:
|
||||
return 0.0
|
||||
|
||||
# Sample random mini-batch from memory
|
||||
|
Reference in New Issue
Block a user