37847c77889e39143034af9fe0d4b92bc74e992a,torch_geometric/datasets/utils/ply.py,,read_ply,#Any#,6

Before Change


    x = plydata["vertex"]["x"]
    y = plydata["vertex"]["y"]
    z = plydata["vertex"]["z"]
    vertices = np.stack((x, y, z), axis=1)

    faces = make2d(plydata["face"]["vertex_indices"])
    faces = faces.astype(np.int64)

    // Conver to torch tensors.
    vertices = torch.FloatTensor(vertices)
    faces = torch.LongTensor(faces)

    return vertices, faces

After Change


    x = torch.FloatTensor(plydata["vertex"]["x"])
    y = torch.FloatTensor(plydata["vertex"]["y"])
    z = torch.FloatTensor(plydata["vertex"]["z"])
    pos = torch.stack([x, y, z], dim=1)
    input = torch.ones(pos.size(0))

    face = torch.LongTensor(make2d(plydata["face"]["vertex_indices"]))
    index = edges_from_faces(face)

    return Data(input, pos, index, None, None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 37847c77889e39143034af9fe0d4b92bc74e992a
Time: 2018-03-02
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/utils/ply.py
Class Name:
Method Name: read_ply


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 3782cc530a2914543e4f86fc727a9021defc0342
Time: 2017-10-30
Author: christian.brenninkmeijer@manchester.ac.uk
File Name: spynnaker/pyNN/models/neuron/synapse_types/synapse_type_exponential.py
Class Name:
Method Name: get_exponential_decay_and_init


Project Name: open-mmlab/mmcv
Commit Name: 978ecfda84d59435dd93be6aa3ceee313e997f6c
Time: 2018-08-27
Author: chenkaidev@gmail.com
File Name: mmcv/video/optflow.py
Class Name:
Method Name: quantize_flow