File tree 2 files changed +9
-3
lines changed
python/dgl/graphbolt/impl
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ def sample_neighbors(
797
797
returning_indices_and_original_edge_ids_are_optional: bool
798
798
Boolean indicating whether it is okay for the call to this function
799
799
to leave the indices and the original edge ids tensors
800
- uninitialized. In this case, it is the user's responsibility to
800
+ uninitialized. In this case, it is the user's responsibility to
801
801
gather them using _edge_ids_in_fused_csc_sampling_graph if either is
802
802
missing.
803
803
async_op: bool
@@ -1035,7 +1035,7 @@ def sample_layer_neighbors(
1035
1035
returning_indices_and_original_edge_ids_are_optional: bool
1036
1036
Boolean indicating whether it is okay for the call to this function
1037
1037
to leave the indices and the original edge ids tensors
1038
- uninitialized. In this case, it is the user's responsibility to
1038
+ uninitialized. In this case, it is the user's responsibility to
1039
1039
gather them using _edge_ids_in_fused_csc_sampling_graph if either is
1040
1040
missing.
1041
1041
random_seed: torch.Tensor, optional
Original file line number Diff line number Diff line change @@ -272,7 +272,13 @@ def __init__(
272
272
if (
273
273
overlap_fetch
274
274
and sampler .__name__ == "sample_neighbors"
275
- and (graph .indices .is_pinned () or (original_edge_ids is not None and original_edge_ids .is_pinned ()))
275
+ and (
276
+ graph .indices .is_pinned ()
277
+ or (
278
+ original_edge_ids is not None
279
+ and original_edge_ids .is_pinned ()
280
+ )
281
+ )
276
282
and graph ._gpu_graph_cache is None
277
283
):
278
284
datapipe = datapipe .transform (self ._sample_per_layer )
You can’t perform that action at this time.
0 commit comments