Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/forge/actors/replay_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def age_evict(
"""Buffer eviction policy, remove old or over-sampled entries"""
indices = []
for i, entry in enumerate(buffer):
if max_age and policy_version - entry.data.policy_version > max_age:
if max_age is not None and policy_version - entry.data.policy_version > max_age:
continue
if max_samples and entry.sample_count >= max_samples:
if max_samples is not None and entry.sample_count >= max_samples:
continue
indices.append(i)
return indices
Expand Down
Loading