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

Method shuffle

python/dgl/dataloading/dataloader.py:221–223  ·  view source on GitHub ↗

Shuffle the dataset.

(self)

Source from the content-addressed store, hash-verified

219 self._shuffle = shuffle
220
221 def shuffle(self):
222 """Shuffle the dataset."""
223 np.random.shuffle(self._indices.numpy())
224
225 def __iter__(self):
226 indices = _divide_by_worker(

Callers 15

shuffleMethod · 0.45
__iter__Method · 0.45
rand_shuffleFunction · 0.45
rand_shuffleFunction · 0.45
add_nodepred_splitFunction · 0.45
forwardMethod · 0.45
_prepare_test_dataFunction · 0.45
_chunk_graphFunction · 0.45

Calls

no outgoing calls

Tested by 6

_prepare_test_dataFunction · 0.36
_chunk_graphFunction · 0.36