d4255c9c4d04cf7f09881b272535cfdc155957a7,env.py,Env,_reset_buffer,#Env#,32

Before Change



  def _reset_buffer(self):
    for _ in range(self.window):
      self.state_buffer.append(self.dtype(84, 84).zero_())

  def reset(self):
    if self.life_termination:

After Change



  def _reset_buffer(self):
    for _ in range(self.window):
      self.state_buffer.append(torch.zeros(84, 84, device=self.device))

  def reset(self):
    if self.life_termination:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Kaixhin/Rainbow
Commit Name: d4255c9c4d04cf7f09881b272535cfdc155957a7
Time: 2018-04-28
Author: design@kaixhin.com
File Name: env.py
Class Name: Env
Method Name: _reset_buffer


Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: e2634f68394eaa1f2c9c07223a9cdce0d2ab34fc
Time: 2018-11-13
Author: FKlemt@gmx.de
File Name: envs.py
Class Name: VecPyTorchFrameStack
Method Name: reset


Project Name: mozilla/TTS
Commit Name: 8d3775a7d695cea3bc398eb3e84da9606184299a
Time: 2019-09-23
Author: egolge@mozilla.com
File Name: layers/tacotron2.py
Class Name: Decoder
Method Name: _init_states