MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / fetch

Method fetch

python/oneflow/utils/data/_utils/fetch.py:63–68  ·  view source on GitHub ↗
(self, possibly_batched_index)

Source from the content-addressed store, hash-verified

61 )
62
63 def fetch(self, possibly_batched_index):
64 if self.auto_collation:
65 data = [self.dataset[idx] for idx in possibly_batched_index]
66 else:
67 data = self.dataset[possibly_batched_index]
68 return self.collate_fn(data)

Callers 2

_next_dataMethod · 0.45
_worker_loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected