b72212719d89f6d9e6a2c92f22f6749470280ed5,catalyst/rl/utils.py,OffpolicyReplayBuffer,push_episode,#OffpolicyReplayBuffer#Any#,155
Before Change
with self._store_lock:
observations, actions, rewards, dones = episode
episode_len = len(rewards)
self.len = min(self.len + episode_len, self.capacity)
indices = np.arange(
self.pointer, self.pointer + episode_len
) % self.capacity
After Change
self.dones[self._pointer:self._pointer + episode_len] = \
np.array(dones)
self._trajectories_lens.append(episode_len)
self._pointer = self._pointer + episode_len
def recalculate_index(self):
with self._store_lock:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: Scitator/catalyst
Commit Name: b72212719d89f6d9e6a2c92f22f6749470280ed5
Time: 2019-05-24
Author: scitator@gmail.com
File Name: catalyst/rl/utils.py
Class Name: OffpolicyReplayBuffer
Method Name: push_episode
Project Name: HyperGAN/HyperGAN
Commit Name: bf34f2ef3f582aea7fdee81c78ec6406c6795151
Time: 2017-11-02
Author: mikkel@255bits.com
File Name: hypergan/generators/resize_conv_generator.py
Class Name: ResizeConvGenerator
Method Name: depths