7d9d7698e50296de0b9a09e5bb3d7bfde79ba789,examples/equivariance_error/main.py,,,#,38

Before Change


    return torch.cat([x[:, :, :, n:], x[:, :, :, :n]], dim=3)

// Create random input
x = torch.autograd.Variable(torch.randn(1, 12, 128, 128), volatile=True).cuda() // [batch, feature, beta, alpha]

y = phi(x)
y1 = rot(phi(x), angle=45)
y2 = phi(rot(x, angle=45))

relative_error = torch.std(y1.data - y2.data) / torch.std(y.data)

After Change


    return torch.cat([x[:, :, :, n:], x[:, :, :, :n]], dim=3)

// Create random input
x = torch.randn(1, 12, 128, 128).cuda() // [batch, feature, beta, alpha]

y = phi(x)
y1 = rot(phi(x), angle=45)
y2 = phi(rot(x, angle=45))

relative_error = torch.std(y1.data - y2.data) / torch.std(y.data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 9

Instances


Project Name: jonas-koehler/s2cnn
Commit Name: 7d9d7698e50296de0b9a09e5bb3d7bfde79ba789
Time: 2018-05-02
Author: geiger.mario@gmail.com
File Name: examples/equivariance_error/main.py
Class Name:
Method Name:


Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: beginner_source/examples_nn/two_layer_net_module.py
Class Name:
Method Name:


Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: beginner_source/blitz/neural_networks_tutorial.py
Class Name:
Method Name:


Project Name: Scitator/catalyst
Commit Name: c3caabbd90fde2f766a63405af3a93dcc1c27299
Time: 2018-10-02
Author: kuzin.artur@gmail.com
File Name: models/segmentation/linknet.py
Class Name:
Method Name:


Project Name: Scitator/catalyst
Commit Name: c3caabbd90fde2f766a63405af3a93dcc1c27299
Time: 2018-10-02
Author: kuzin.artur@gmail.com
File Name: models/segmentation/unet.py
Class Name:
Method Name:


Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: beginner_source/former_torchies/nn_tutorial.py
Class Name:
Method Name:


Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: advanced_source/super_resolution_with_caffe2.py
Class Name:
Method Name:


Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: beginner_source/examples_nn/dynamic_net.py
Class Name:
Method Name: