Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CfromBU committed Dec 12, 2024
1 parent ecedeae commit 76858ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/dgl/distributed/dist_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def add_edge_attribute_to_graph(g, data_name, gb_padding=0):
The graph.
data_name : str
The name of data that's stored in DistGraph.ndata/edata.
gb_padding : int, optional
The padding value for GraphBolt partitions' new edge_attributes.
"""
if g._use_graphbolt and data_name:
g.add_edge_attribute(data_name, gb_padding)
Expand All @@ -344,6 +346,8 @@ class NodeCollator(Collator):
The node set to compute outputs.
graph_sampler : dgl.dataloading.BlockSampler
The neighborhood sampler.
gb_padding : int, optional
The padding value for GraphBolt partitions' new edge_attributes.
Examples
--------
Expand Down
2 changes: 2 additions & 0 deletions python/dgl/distributed/dist_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,8 @@ def add_edge_attribute(self, name, padding=0):
----------
name : str
The name of the edge attribute.
padding : int, optional
The padding value for the new edge attribute.
"""
# Sanity checks.
if not self._use_graphbolt:
Expand Down

0 comments on commit 76858ff

Please sign in to comment.