57e63487536fe9493091c4d1b011a8760c805df4,examples/shapenet.py,,train,#Any#,96

Before Change


        data = data.cuda(["input", "pos", "index", "weight", "target"])
        data = data.to_variable()
        optimizer.zero_grad()
        output = model(data.input, data.pos, data.adj)
        print(output.size())
        loss = F.nll_loss(output, data.target)
        loss.backward()
        optimizer.step()

After Change


    model.train()

    for data in train_loader:
        data = data.cuda().to_variable()
        optimizer.zero_grad()
        output = model(data)
        loss = F.nll_loss(output, data.target)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 57e63487536fe9493091c4d1b011a8760c805df4
Time: 2018-02-13
Author: matthias.fey@tu-dortmund.de
File Name: examples/shapenet.py
Class Name:
Method Name: train


Project Name: erikwijmans/Pointnet2_PyTorch
Commit Name: 803d7e1fc61536c846c811bdee158bd21db36779
Time: 2017-12-26
Author: ewijmans2@gmail.com
File Name: models/Pointnet2Cls.py
Class Name:
Method Name:


Project Name: fperazzi/proSR
Commit Name: 13287043443135f6f3f8ed787d3978866c390d81
Time: 2019-03-27
Author: fperazzi@adobe.com
File Name: test.py
Class Name:
Method Name: