Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
72937574
Unverified
Commit
72937574
authored
Dec 11, 2023
by
Mingbang Wang
Committed by
GitHub
Dec 11, 2023
Browse files
[Misc] Polish the python code (#6704)
parent
130d84a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
+5
-1
No files found.
python/dgl/graphbolt/impl/fused_csc_sampling_graph.py
View file @
72937574
...
...
@@ -294,7 +294,7 @@ class FusedCSCSamplingGraph(SamplingGraph):
Returns
-------
torch.Tensor or None
Dict[str,
torch.Tensor
]
or None
If present, returns a dictionary of edge attributes. Each key
represents the attribute's name, while the corresponding value
holds the attribute's specific value. The length of each value
...
...
@@ -583,6 +583,7 @@ class FusedCSCSamplingGraph(SamplingGraph):
corresponding to each neighboring edge of a node. It must be a 1D
floating-point or boolean tensor, with the number of elements
equalling the total number of edges.
Returns
-------
FusedSampledSubgraphImpl
...
...
@@ -698,6 +699,7 @@ class FusedCSCSamplingGraph(SamplingGraph):
corresponding to each neighboring edge of a node. It must be a 1D
floating-point or boolean tensor, with the number of elements
equalling the total number of edges.
Returns
-------
torch.classes.graphbolt.SampledSubgraph
...
...
@@ -767,6 +769,7 @@ class FusedCSCSamplingGraph(SamplingGraph):
corresponding to each neighboring edge of a node. It must be a 1D
floating-point or boolean tensor, with the number of elements
equalling the total number of edges.
Returns
-------
FusedSampledSubgraphImpl
...
...
@@ -934,6 +937,7 @@ def from_fused_csc(
Edge attributes of the graph, by default None.
metadata: Optional[GraphMetadata], optional
Metadata of the graph, by default None.
Returns
-------
FusedCSCSamplingGraph
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment