Skip to content

Commit

Permalink
Update lp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
reviverkey authored Dec 10, 2023
1 parent bd78a04 commit 0907a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def load(emb_file_path):
emb_dict[index] = np.array(emb.split()).astype(np.float32)

return train_para, emb_dict
device = torch.device("cuda:1")
device = torch.device("cuda:0")
emb_file_path = './PubMed/emb.dat'
train_para, emb_dict = load(emb_file_path)
link_test_file = './PubMed/sample.dat'
Expand Down

0 comments on commit 0907a23

Please sign in to comment.