Skip to content

Commit

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

0 comments on commit abf466c

Please sign in to comment.