Skip to content

Commit

Permalink
fix typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
jongyaoY committed Sep 11, 2024
1 parent 714d3ab commit d62e387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fignet/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def collate_fn(batch: List[Graph]):
for edge_typ in graph.edge_sets.keys():
if (
edge_typ == EdgeType.MESH_MESH
or edge_typ == EdgeType.MESH_MESH
or edge_typ == EdgeType.FACE_FACE
):
graph.edge_sets[edge_typ].index += m_node_offset
elif edge_typ == EdgeType.OBJ_MESH:
Expand All @@ -78,6 +78,8 @@ def collate_fn(batch: List[Graph]):
elif edge_typ == EdgeType.MESH_OBJ:
graph.edge_sets[edge_typ].index[0, :] += m_node_offset
graph.edge_sets[edge_typ].index[1, :] += o_node_offset
else:
raise TypeError(f"Unknown edge type {edge_typ}")
# Concatenate
batch_graph.edge_sets[edge_typ].index = torch.cat(
[
Expand Down

0 comments on commit d62e387

Please sign in to comment.