From 348028855f32d42e0602cad298a9875d47817212 Mon Sep 17 00:00:00 2001 From: "Hung, Chung Chun" Date: Sun, 15 Sep 2019 19:02:50 +0800 Subject: [PATCH] Remove the duplicate length checking It will check in the `def _add`. --- dopamine/replay_memory/circular_replay_buffer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dopamine/replay_memory/circular_replay_buffer.py b/dopamine/replay_memory/circular_replay_buffer.py index a992b887..5ee24594 100644 --- a/dopamine/replay_memory/circular_replay_buffer.py +++ b/dopamine/replay_memory/circular_replay_buffer.py @@ -307,8 +307,7 @@ def _check_add_types(self, *args): Raises: ValueError: If args have wrong shape or dtype. - """ - 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