Skip to content

Commit

Permalink
Remove the duplicate length checking
Browse files Browse the repository at this point in the history
It will check in the `def _add`.
  • Loading branch information
NaiveRed authored Sep 15, 2019
1 parent 85fa5c2 commit 3480288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dopamine/replay_memory/circular_replay_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ def _check_add_types(self, *args):
Raises:
ValueError: If args have wrong shape or dtype.
"""

This comment has been minimized.

Copy link
@noname5557

noname5557 Sep 26, 2019

Remove the duplicate length checking

self._check_args_length(*args)
"""
for arg_element, store_element in zip(args, self.get_add_args_signature()):
if isinstance(arg_element, np.ndarray):
arg_shape = arg_element.shape
Expand Down

0 comments on commit 3480288

Please sign in to comment.