Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
55f3f240
Unverified
Commit
55f3f240
authored
Apr 24, 2020
by
Jaeyoun Kim
Committed by
GitHub
Apr 24, 2020
Browse files
Update replay_buffer.py
Fixed bug
parent
5f1c1b09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/pcl_rl/replay_buffer.py
research/pcl_rl/replay_buffer.py
+1
-1
No files found.
research/pcl_rl/replay_buffer.py
View file @
55f3f240
...
...
@@ -133,7 +133,7 @@ class PrioritizedReplayBuffer(ReplayBuffer):
self
.
remove_idx
=
idxs
[
-
1
]
+
1
-
self
.
init_length
elif
self
.
eviction_strategy
==
'rank'
:
# remove lowest-priority indices
idxs
=
np
.
argpartition
(
self
.
priorities
,
n
)[:
n
]
idxs
=
np
.
argpartition
(
self
.
priorities
,
n
-
1
)[:
n
]
return
idxs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment