80f2930151b0eeaa393ff0441917f783da3f1561,examples/pytorch_simple.py,,get_mnist,#,76

Before Change


    kwargs = {"num_workers": 1, "pin_memory": True} if DEVICE.type == "cuda" else {}
    train_loader = torch.utils.data.DataLoader(
        datasets.MNIST(DIR, train=True, download=True,
                       transform=transforms.Compose([
                           transforms.ToTensor(),
                           transforms.Normalize((0.1307,), (0.3081,))
                       ])),
        batch_size=BATCHSIZE, shuffle=True, **kwargs)
    test_loader = torch.utils.data.DataLoader(
        datasets.MNIST(DIR, train=False,
                       transform=transforms.Compose([
                           transforms.ToTensor(),
                           transforms.Normalize((0.1307,), (0.3081,))
                       ])),
        batch_size=BATCHSIZE, shuffle=True, **kwargs)

    return (train_loader, test_loader)

After Change


    train_loader = torch.utils.data.DataLoader(datasets.MNIST(DIR,
                                                              train=True,
                                                              download=True,
                                                              transform=transforms.ToTensor()),
                                               batch_size=BATCHSIZE,
                                               shuffle=True)
    test_loader = torch.utils.data.DataLoader(datasets.MNIST(DIR,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pfnet/optuna
Commit Name: 80f2930151b0eeaa393ff0441917f783da3f1561
Time: 2019-04-10
Author: rishav.chourasia@gmail.com
File Name: examples/pytorch_simple.py
Class Name:
Method Name: get_mnist


Project Name: hunkim/PyTorchZeroToAll
Commit Name: e6c8024fcceb9b47b82425a588988a63a365d544
Time: 2017-10-07
Author: hunkim@gmail.com
File Name: 09_softmax_mnist.py
Class Name:
Method Name:


Project Name: leftthomas/SRGAN
Commit Name: eab5e7909d647e363002b529e9d39911f4a2b028
Time: 2017-12-01
Author: leftthomas@qq.com
File Name: train2.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: 80f2930151b0eeaa393ff0441917f783da3f1561
Time: 2019-04-10
Author: rishav.chourasia@gmail.com
File Name: examples/pytorch_simple.py
Class Name:
Method Name: get_mnist