diff --git a/python/dgl/distributed/dist_dataloader.py b/python/dgl/distributed/dist_dataloader.py index b9733fdb99d1..bf644187cb96 100644 --- a/python/dgl/distributed/dist_dataloader.py +++ b/python/dgl/distributed/dist_dataloader.py @@ -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) @@ -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 -------- diff --git a/python/dgl/distributed/dist_graph.py b/python/dgl/distributed/dist_graph.py index 054e7d758900..0049816047c2 100644 --- a/python/dgl/distributed/dist_graph.py +++ b/python/dgl/distributed/dist_graph.py @@ -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: