Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Aug 18, 2024
1 parent 5711599 commit e433aba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/dgl/graphbolt/impl/gpu_graph_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class GPUGraphCache(object):
Whether the graph to be cached has original edge ids.
"""

def __init__(self, num_edges, threshold, indptr_dtype, dtypes, has_original_edge_ids):
def __init__(
self, num_edges, threshold, indptr_dtype, dtypes, has_original_edge_ids
):
major, _ = torch.cuda.get_device_capability()
assert (
major >= 7
Expand Down Expand Up @@ -59,7 +61,9 @@ def query(self, keys):
) = self._cache.query(keys)
self.total_miss += keys.shape[0] - num_hit

def replace_functional(missing_indptr, missing_edge_tensors, with_edge_ids):
def replace_functional(
missing_indptr, missing_edge_tensors, with_edge_ids
):
return self._cache.replace(
keys,
index,
Expand Down

0 comments on commit e433aba

Please sign in to comment.