Checking branch push

This commit is contained in:
Vedant Dave 2023-04-15 15:54:09 +02:00
parent 9aa07fed6a
commit 9a2e9f420b

View File

@ -200,6 +200,7 @@ class ReplayBuffer:
variable = getattr(buffer, variable) variable = getattr(buffer, variable)
non_zero_indices = np.nonzero(buffer.episode_count)[0] non_zero_indices = np.nonzero(buffer.episode_count)[0]
variable = variable[non_zero_indices] variable = variable[non_zero_indices]
if obs: if obs:
variable = variable.reshape(-1, self.args.episode_length, variable = variable.reshape(-1, self.args.episode_length,
self.args.frame_stack*self.args.channels, self.args.frame_stack*self.args.channels,