set_src_lazy_features¶
-
class
dgl.dataloading.base.
set_src_lazy_features
(g, feature_names)[source]¶ Assign lazy features to the
srcdata
of the input graph for prefetching optimization.When used in a
Sampler
, lazy features mark which data should be fetched before computation in model. See 6.8 Feature Prefetching for a detailed explanation.If the graph is homogeneous, this is equivalent to:
If the graph is heterogeneous, this is equivalent to:
- Parameters
See also
dgl.LazyFeature