MCPcopy
hub / github.com/dmlc/dgl / blocks

Method blocks

python/dgl/graphbolt/minibatch.py:172–181  ·  view source on GitHub ↗

DGL blocks extracted from `MiniBatch` containing graphical structures and ID mappings.

(self)

Source from the content-addressed store, hash-verified

170
171 @property
172 def blocks(self) -> list:
173 """DGL blocks extracted from `MiniBatch` containing graphical structures
174 and ID mappings.
175 """
176 if not self.sampled_subgraphs:
177 return None
178
179 if self._blocks is None:
180 self._blocks = self.compute_blocks()
181 return self._blocks
182
183 def compute_blocks(self) -> list:
184 """Extracts DGL blocks from `MiniBatch` to construct graphical

Callers

nothing calls this directly

Calls 1

compute_blocksMethod · 0.95

Tested by

no test coverage detected