Unverified Commit e1806d60 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[GraphBolt] replace Datablock by MiniBatch (#6308)

parent a49ec9e5
...@@ -52,15 +52,15 @@ class FeatureFetcher(Mapper): ...@@ -52,15 +52,15 @@ class FeatureFetcher(Mapper):
Parameters Parameters
---------- ----------
data : DataBlock data : MiniBatch
An instance of the 'DataBlock' class. Even if 'node_feature' or An instance of :class:`MiniBatch`. Even if 'node_feature' or
'edge_feature' is already filled, it will be overwritten for 'edge_feature' is already filled, it will be overwritten for
overlapping features. overlapping features.
Returns Returns
------- -------
DataBlock MiniBatch
An instance of 'DataBlock' filled with required features. An instance of :class:`MiniBatch` filled with required features.
""" """
data.node_features = {} data.node_features = {}
num_layer = len(data.sampled_subgraphs) if data.sampled_subgraphs else 0 num_layer = len(data.sampled_subgraphs) if data.sampled_subgraphs else 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment