Skip to content

Commit

Permalink
return tensor instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiwen Yuan committed Oct 21, 2024
1 parent 97bacbd commit d506b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ijcai_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def test(loader: NeighborLoader, desc: str) -> np.ndarray:

_, pred_mini = torch.topk(scores, k=args.eval_k, dim=1)
pred_list.append(pred_mini)
pred = torch.cat(pred_list, dim=0).cpu().numpy()
pred = torch.cat(pred_list, dim=0)
return pred


Expand Down

0 comments on commit d506b54

Please sign in to comment.