ea825a5aa6c2db3743c803821a5e220301ebf5b4,mnist_hogwild/main.py,,,#,47

Before Change



    torch.manual_seed(args.seed)

    model = Net()
    model.share_memory() // gradients are allocated lazily, so they are not shared here

    processes = []
    for rank in range(args.num_processes):

After Change


    torch.manual_seed(args.seed)
    mp.set_start_method("spawn")

    model = Net().to(device)
    model.share_memory() // gradients are allocated lazily, so they are not shared here

    processes = []
    for rank in range(args.num_processes):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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:


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: 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