19f6bfac9d39794db025dc53f8921346f58080b9,enjoy.py,,,#,12

Before Change


        break
    elif hasattr(tmp_env, "venv"):
        tmp_env = tmp_env.venv
    elif hasattr(tmp_env, "env"):
        tmp_env = tmp_env.env
    else:
        break

After Change


            torch.load(os.path.join(args.load_dir, args.env_name + ".pt"))

vec_norm = get_vec_normalize(envs)
if vec_norm is not None:
    vec_norm.eval()
    vec_norm.ob_rms = ob_rms

recurrent_hidden_states = torch.zeros(1, actor_critic.recurrent_hidden_state_size)
masks = torch.zeros(1, 1)

if render_func is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: 19f6bfac9d39794db025dc53f8921346f58080b9
Time: 2018-09-17
Author: meinhardt.tim@gmail.com
File Name: enjoy.py
Class Name:
Method Name:


Project Name: BVLC/caffe
Commit Name: 99f27fc082612745c8d8cc932be42fdfd035e789
Time: 2014-08-05
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/pycaffe.py
Class Name:
Method Name: _Net_deprocess


Project Name: BVLC/caffe
Commit Name: 99f27fc082612745c8d8cc932be42fdfd035e789
Time: 2014-08-05
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/pycaffe.py
Class Name:
Method Name: _Net_preprocess