We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dd4d1 commit 448c18aCopy full SHA for 448c18a
src/forge/actors/replay_buffer.py
@@ -33,9 +33,9 @@ def age_evict(
33
"""Buffer eviction policy, remove old or over-sampled entries"""
34
indices = []
35
for i, entry in enumerate(buffer):
36
- 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:
37
continue
38
- if max_samples and entry.sample_count >= max_samples:
+ if max_samples is not None and entry.sample_count >= max_samples:
39
40
indices.append(i)
41
return indices
0 commit comments