We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ca2d6 commit 4cec485Copy full SHA for 4cec485
chainerrl/misc/prioritized.py
@@ -15,7 +15,7 @@ def __len__(self):
15
def append(self, value):
16
# new values are the most prioritized
17
self.data_inf.append(value)
18
- if len(self) > self.capacity:
+ if self.capacity is not None and len(self) > self.capacity:
19
self.pop()
20
21
def _pop_random_data_inf(self):
0 commit comments