a3b9a74fb0b6cf75bc81efdc42804f07709f87d1,torch_geometric/utils/mnist_monet.py,,,#,66
Before Change
for i in range(2):
a = polar2euclidean(rho[i], theta[i])
print(a.size())
// from __future__ import division
After Change
input, target, rho, theta = data
target = target.byte()
positions = []
for i in range(70000):
adj = polar2euclidean(rho[i], theta[i])
adj = sparse_to_dict(adj)
pos = dict_to_pos(adj)
minimum, _ = pos.min(dim=0)
pos = pos - minimum
positions.append(pos)
positions = torch.stack(positions, dim=0)
torch.save(positions, os.path.join(path, "positions.pt"))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: a3b9a74fb0b6cf75bc81efdc42804f07709f87d1
Time: 2017-10-31
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/utils/mnist_monet.py
Class Name:
Method Name:
Project Name: open-mmlab/mmdetection
Commit Name: a6236b789b8f4e2e66c8379199f40ecef9afce06
Time: 2020-04-21
Author: 40779233+ZwwWayne@users.noreply.github.com
File Name: mmdet/core/anchor/anchor_generator.py
Class Name: AnchorGenerator
Method Name: valid_flags
Project Name: osmr/imgclsmob
Commit Name: 4ad1ebea7992d840e028ff513dc81e0073755d6e
Time: 2019-02-24
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/oth_fractalnet_cifar10_2.py
Class Name: FractalNet
Method Name: forward