83c9130b8ac6e5cf76fb804282c652343ed2167d,env.py,Env,reset,#Env#,34
Before Change
observation = self._get_state()
self.state_buffer.append(observation)
self.lives = self.ale.lives()
return torch.stack(list(self.state_buffer), 0)
def step(self, action):
// Repeat action 4 times, max pool over last 2 frames
frame_buffer = torch.zeros(2, 84, 84, device=self.device)
After Change
def reset(self):
observation = self._reset()
// Press fire (raw action 1) to reset game if needed
if 1 in self.actions.keys():
observation, _, done = self.step(1)
if done:
self._reset()
observation, _, done = self.step(2)
if done:
self._reset()
return observation
def step(self, action):
// Repeat action 4 times, max pool over last 2 frames
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: Kaixhin/Rainbow
Commit Name: 83c9130b8ac6e5cf76fb804282c652343ed2167d
Time: 2018-05-06
Author: design@kaixhin.com
File Name: env.py
Class Name: Env
Method Name: reset
Project Name: onnx/onnx-tensorflow
Commit Name: 58ace0a10f2859a7bfbb9b56238ba47e4175f5ac
Time: 2020-10-09
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/max.py
Class Name: Max
Method Name: _common
Project Name: onnx/onnx-tensorflow
Commit Name: 58ace0a10f2859a7bfbb9b56238ba47e4175f5ac
Time: 2020-10-09
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/min.py
Class Name: Min
Method Name: _common