672b2668ce155a0f7c1a56f3e46a3fc7205f3cb3,models/segmentation/unet.py,,,#,108

Before Change


        model.cuda()

    images = torch.randn(4, 3, 256, 256)
    if torch.cuda.is_available():
        images = images.cuda()

    out = model.forward(images)
    print(out.size())

After Change




if __name__ == "__main__":
    device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

    model = UNet(num_classes=1).to(device)
    images = torch.randn(4, 3, 256, 256).to(device)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Scitator/catalyst
Commit Name: 672b2668ce155a0f7c1a56f3e46a3fc7205f3cb3
Time: 2018-10-04
Author: scitator@gmail.com
File Name: models/segmentation/unet.py
Class Name:
Method Name:


Project Name: Scitator/catalyst
Commit Name: 672b2668ce155a0f7c1a56f3e46a3fc7205f3cb3
Time: 2018-10-04
Author: scitator@gmail.com
File Name: models/segmentation/linknet.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: