Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and DamianSzwichtenberg committed Aug 28, 2023
1 parent 298f3d4 commit 928ca79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torch_geometric/loader/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def __init__(self, loader: DataLoader, device: torch.device):

# register default hooks
self.register_attr_hooks([
lambda b: b.n_id,
lambda b: b.adj_t if hasattr(b, 'adj_t') else b.edge_index,
lambda b: b.batch_size])
lambda b: b.n_id, lambda b: b.adj_t
if hasattr(b, 'adj_t') else b.edge_index, lambda b: b.batch_size
])

def _check_if_reg_is_open(self) -> None:
if not self.hook_reg_open:
Expand Down

0 comments on commit 928ca79

Please sign in to comment.