946352c486f5de2c1174a9403bde50ec11db5315,torch_geometric/datasets/faust.py,FAUST,__getitem__,#FAUST#Any#,55
Before Change
vertices = self.vertices[index]
edges = self.edges[index]
data = (vertices, edges)
// TODO: return adj with ones as edge weights?
if self.correspondence:
After Change
def __getitem__(self, i):
position = self.position[i]
index = self.index[:, i]
weight = torch.FloatTensor(index.size(1)).fill_(1)
input = torch.FloatTensor(position.size(0)).fill_(1)
adj = torch.sparse.FloatTensor(index, weight, torch.Size([75, 75]))
data = (input, adj, position)
if self.correspondence:
target = torch.arange(0, input.size(0)).long()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 946352c486f5de2c1174a9403bde50ec11db5315
Time: 2017-11-01
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/faust.py
Class Name: FAUST
Method Name: __getitem__
Project Name: rusty1s/pytorch_geometric
Commit Name: 01163cdc54d6119b4189dc3ca98e90372b1fb731
Time: 2017-11-19
Author: matthias.fey@tu-dortmund.de
File Name: examples/mnist_grid.py
Class Name:
Method Name:
Project Name: cornellius-gp/gpytorch
Commit Name: 979b8c9efa551e8c948a4aca145367a2d87ac8d6
Time: 2019-02-26
Author: balandat@fb.com
File Name: test/distributions/test_multitask_multivariate_normal.py
Class Name: TestMultiTaskMultivariateNormal
Method Name: test_multivariate_normal_correlated_sampels