Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Feb 9, 2024
1 parent 037fa4d commit c1a846b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adbpyg_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,9 +917,9 @@ def __process_adb_edge_df(
np.array([from_n.to_numpy(), to_n.to_numpy()]), dtype=torch.int64
)

empty_tensor = torch.tensor([], dtype=torch.int64)
empty_tensor = tensor([], dtype=torch.int64)
existing_edge_index = edge_data.get("edge_index", empty_tensor)
edge_data.edge_index = torch.cat((existing_edge_index, edge_index), dim=1)
edge_data.edge_index = cat((existing_edge_index, edge_index), dim=1)

# 7. Deal with invalid edges
if torch.any(edge_data.edge_index == -1):
Expand Down

0 comments on commit c1a846b

Please sign in to comment.