MCPcopy Index your code
hub / github.com/pytorch/pytorch / _read_all_data

Method _read_all_data

caffe2/python/dataio_test.py:373–380  ·  view source on GitHub ↗
(ws, reader, session)

Source from the content-addressed store, hash-verified

371
372 @staticmethod
373 def _read_all_data(ws, reader, session):
374 dst_ds = make_destination_dataset(ws, reader.schema().clone_schema())
375
376 with TaskGroup() as tg:
377 pipe(reader, dst_ds.writer(), num_runtime_threads=8)
378 session.run(tg)
379
380 return ws.blobs[str(dst_ds.content().label())].fetch()
381
382 @unittest.skipIf("LevelDB" not in core.C.registered_dbs(), "Need LevelDB")
383 def test_cached_reader(self):

Callers 2

test_cached_readerMethod · 0.95
test_db_file_readerMethod · 0.95

Calls 9

TaskGroupClass · 0.90
pipeFunction · 0.90
make_destination_datasetFunction · 0.85
clone_schemaMethod · 0.80
contentMethod · 0.80
schemaMethod · 0.45
writerMethod · 0.45
runMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected