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
e1806d60
Unverified
Commit
e1806d60
authored
Sep 11, 2023
by
Rhett Ying
Committed by
GitHub
Sep 11, 2023
Browse files
[GraphBolt] replace Datablock by MiniBatch (#6308)
parent
a49ec9e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
python/dgl/graphbolt/feature_fetcher.py
python/dgl/graphbolt/feature_fetcher.py
+4
-4
No files found.
python/dgl/graphbolt/feature_fetcher.py
View file @
e1806d60
...
...
@@ -52,15 +52,15 @@ class FeatureFetcher(Mapper):
Parameters
----------
data :
DataBlock
An instance of
the 'DataBlock' class
. Even if 'node_feature' or
data :
MiniBatch
An instance of
:class:`MiniBatch`
. Even if 'node_feature' or
'edge_feature' is already filled, it will be overwritten for
overlapping features.
Returns
-------
DataBlock
An instance of
'DataBlock'
filled with required features.
MiniBatch
An instance of
:class:`MiniBatch`
filled with required features.
"""
data
.
node_features
=
{}
num_layer
=
len
(
data
.
sampled_subgraphs
)
if
data
.
sampled_subgraphs
else
0
...
...
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