MCPcopy Create free account
hub / github.com/alibaba/nann / prefetch

Method prefetch

tensorflow/tensorflow/python/data/ops/dataset_ops.py:779–795  ·  view source on GitHub ↗

Creates a `Dataset` that prefetches elements from this dataset. Note: Like other `Dataset` methods, prefetch operates on the elements of the input dataset. It has no concept of examples vs. batches. `examples.prefetch(2)` will prefetch two elements (2 examples), while `examples.batc

(self, buffer_size)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

tfrecords_dataioFunction · 0.45
__init__Method · 0.45
get_ds_from_tfrecordsFunction · 0.45
input_fnMethod · 0.45
input_fn_nullMethod · 0.45
StreamingFilesDatasetFunction · 0.45
fnMethod · 0.45
_testFromGeneratorMethod · 0.45
interleave_fnMethod · 0.45

Calls 1

PrefetchDatasetClass · 0.70

Tested by 15

fnMethod · 0.36
_testFromGeneratorMethod · 0.36
interleave_fnMethod · 0.36
testBufferSizeMethod · 0.36
testInvalidBufferSizeMethod · 0.36
testPrefetchErrorMethod · 0.36