656933c471e64ad697be749b98cea93a758ac5cb,ch16/02_cheetah_es.py,,worker_func,#,128

Before Change



def worker_func(worker_id, params_queue, rewards_queue, cuda, noise_std):
    env = make_env()
    net = Net(env.observation_space.shape[0], env.action_space.shape[0])
    net.eval()
    if cuda:
        net.cuda()

After Change



def worker_func(worker_id, params_queue, rewards_queue, device, noise_std):
    env = make_env()
    net = Net(env.observation_space.shape[0], env.action_space.shape[0]).to(device)
    net.eval()

    while True:
        params = params_queue.get()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 656933c471e64ad697be749b98cea93a758ac5cb
Time: 2018-04-29
Author: max.lapan@gmail.com
File Name: ch16/02_cheetah_es.py
Class Name:
Method Name: worker_func


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 84e2cf87e0fe23fe3432b74ab484b1b71cd729b3
Time: 2018-04-29
Author: max.lapan@gmail.com
File Name: ch18/train.py
Class Name:
Method Name:


Project Name: pytorch/examples
Commit Name: ea825a5aa6c2db3743c803821a5e220301ebf5b4
Time: 2019-02-15
Author: vitalyf@fb.com
File Name: mnist_hogwild/main.py
Class Name:
Method Name: