Skip to content

Commit

Permalink
Merge branch 'gb_non_blocking_copy_to' into gb_dataloader_non_blockin…
Browse files Browse the repository at this point in the history
…g_copy_to
  • Loading branch information
mfbalin committed Jul 27, 2024
2 parents f268362 + 13e9a68 commit 0df5a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/dgl/graphbolt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,9 @@ def __init__(self, indptr: torch.Tensor, indices: torch.Tensor):
def __repr__(self) -> str:
return _csc_format_base_str(self)

def to(
def to( # pylint: disable=invalid-name
self, device: torch.device, non_blocking=False
) -> None: # pylint: disable=invalid-name
) -> None:
"""Copy `CSCFormatBase` to the specified device using reflection."""

for attr in dir(self):
Expand Down

0 comments on commit 0df5a21

Please sign in to comment.