48cdca843f2d06aeb356db27d48e01c1153eba22,python/ray/util/sgd/pytorch/examples/dcgan.py,,train_example,#Any#Any#Any#,214

Before Change




def train_example(num_replicas=1, use_gpu=False, test_mode=False):
    config = {TEST_MODE: test_mode}
    trainer = PyTorchTrainer(
        model_creator,
        data_creator,
        optimizer_creator,

After Change




def train_example(num_replicas=1, use_gpu=False, test_mode=False):
    config = {
        "test_mode": test_mode,
        "classification_model_path": os.path.join(
            os.path.dirname(ray.__file__),
            "util/sgd/pytorch/examples/mnist_cnn.pt")
    }
    trainer = PyTorchTrainer(
        model_creator,
        data_creator,
        optimizer_creator,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: ray-project/ray
Commit Name: 48cdca843f2d06aeb356db27d48e01c1153eba22
Time: 2020-03-01
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/pytorch/examples/dcgan.py
Class Name:
Method Name: train_example


Project Name: pytorch/audio
Commit Name: 7236e3f4b97eaeb942f07d75501e9626e80e7f85
Time: 2018-04-26
Author: soumith@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: pytorch/audio
Commit Name: d5eadbdc28a751aba10b57cbad52f90dbbf64938
Time: 2018-05-07
Author: soumith@gmail.com
File Name: setup.py
Class Name:
Method Name: