960518e2734a42f7da19dc3d4d49501004c037e1,mnist/main.py,,,#,54

Before Change


        x = self.relu(self.fc2(x))
        return self.softmax(x)

model = Net().cuda()

criterion = nn.ClassNLLCriterion()

// Training settings

After Change


def print_header(msg):
    print("===>", msg)

if not os.path.exists("data/processed/training.pt"):
    import data

// Data
print_header("Loading data")
with open("data/processed/training.pt", "rb") as f:
    training_set = torch.load(f)
with open("data/processed/test.pt", "rb") as f:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pytorch/examples
Commit Name: 960518e2734a42f7da19dc3d4d49501004c037e1
Time: 2016-09-25
Author: cfarabet@twitter.com
File Name: mnist/main.py
Class Name:
Method Name:


Project Name: rusty1s/pytorch_geometric
Commit Name: b44364811b14bde01d84554624a9bffa0e4976e3
Time: 2018-03-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/cora_gcn.py
Class Name:
Method Name: