6c44fb28fecdb666182e2951b7b1cbe9cf198ff1,baselines/her/rollout.py,RolloutWorker,generate_rollouts,#RolloutWorker#,64

Before Change


                    if self.render:
                        self.envs[i].render()
                except MujocoException as e:
                    return self.generate_rollouts()

            if np.isnan(o_new).any():
                self.logger.warn("NaN caught during rollout generation. Trying again...")
                self.reset_all_rollouts()

After Change


            ag_new = np.empty((self.rollout_batch_size, self.dims["g"]))
            success = np.zeros(self.rollout_batch_size)
            // compute new states and observations
            obs_dict_new, _, done, info = self.venv.step(u)
            o_new = obs_dict_new["observation"]
            ag_new = obs_dict_new["achieved_goal"]
            success = np.array([i.get("is_success", 0.0) for i in info])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: openai/baselines
Commit Name: 6c44fb28fecdb666182e2951b7b1cbe9cf198ff1
Time: 2018-12-19
Author: peterzhokhoff@gmail.com
File Name: baselines/her/rollout.py
Class Name: RolloutWorker
Method Name: generate_rollouts


Project Name: reinforceio/tensorforce
Commit Name: ee950b503eeed5aca3747a4bcf2a40f624b743a0
Time: 2019-01-21
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/synchronization.py
Class Name: Synchronization
Method Name: tf_step


Project Name: lcswillems/torch-rl
Commit Name: 6ee019df2ef9534773953808b9b2116f3e6521dc
Time: 2018-05-31
Author: lcswillems@gmail.com
File Name: torch_rl/torch_rl/utils/multienv.py
Class Name: MultiEnv
Method Name: step