Skip to content

Commit

Permalink
fix the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Jan 17, 2024
1 parent abf466c commit 93c8a18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,8 @@ def _pin(x):
if hasattr(x, "pin_memory_"):
x.pin_memory_()
elif (
not x.is_pinned()
isinstance(x, torch.Tensor)
and not x.is_pinned()
and x.device.type == "cpu"
and x.is_contiguous()
):
Expand Down

0 comments on commit 93c8a18

Please sign in to comment.