5510a7709e957615fb55397698f8e1c79cd5481b,torch_geometric/io/ply.py,,read_ply,#Any#,6
Before Change
face = None
if "face" in data:
faces = data["face"]["vertex_indices"]
faces = [torch.tensor(fa, dtype=torch.long) for fa in faces]
face = torch.stack(faces, dim=-1)
data = Data(pos=pos, face=face)
return data
After Change
mesh = openmesh.read_trimesh(path)
pos = torch.from_numpy(mesh.points()).to(torch.float)
face = torch.from_numpy(mesh.face_vertex_indices())
face = face.t().to(torch.long).contiguous()
data = Data(pos=pos, face=face)
return data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: rusty1s/pytorch_geometric
Commit Name: 5510a7709e957615fb55397698f8e1c79cd5481b
Time: 2020-07-01
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/io/ply.py
Class Name:
Method Name: read_ply
Project Name: ClementPinard/FlowNetPytorch
Commit Name: d95f630a7b7f88621bc4abb4ac92692647f03781
Time: 2018-08-23
Author: clement.pinard@parrot.com
File Name: main.py
Class Name:
Method Name: train
Project Name: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 28d8021977b9d811f84543ed85d5f011bc3695c6
Time: 2019-09-27
Author: alexliu36@gmail.com
File Name: src/asr.py
Class Name: Decoder
Method Name: set_state