Skip to content

Commit

Permalink
Enable faster validation for pytorch graphsage example (dmlc#3361)
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-dlasalle authored Sep 20, 2021
1 parent bc5cac4 commit 01a2214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/pytorch/graphsage/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def inference(self, g, x, device, batch_size, num_workers):
g,
th.arange(g.num_nodes()).to(g.device),
sampler,
device=device if num_workers == 0 else None,
batch_size=batch_size,
shuffle=True,
shuffle=False,
drop_last=False,
num_workers=num_workers)

Expand Down

0 comments on commit 01a2214

Please sign in to comment.