mirror of
https://github.com/wassname/ray.git
synced 2026-07-29 11:26:04 +08:00
[RLlib] Fix bugs and speed up SegmentTree
This commit is contained in:
@@ -227,7 +227,7 @@ class PrioritizedReplayBuffer(ReplayBuffer):
|
||||
Array of shape (batch_size,) and dtype np.int32
|
||||
idexes in buffer of sampled experiences
|
||||
"""
|
||||
assert beta > 0
|
||||
assert beta >= 0.0
|
||||
self._num_sampled += batch_size
|
||||
|
||||
idxes = self._sample_proportional(batch_size)
|
||||
|
||||
Reference in New Issue
Block a user