Creates a dataset that asynchronously prefetches elements from input_dataset
.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.raw_ops.PrefetchDataset(
input_dataset,
buffer_size,
output_types,
output_shapes,
slack_period=0,
legacy_autotune=True,
buffer_size_min=0,
metadata='',
name=None
)
Args | |
---|---|
input_
|
A Tensor of type variant .
|
buffer_
|
A Tensor of type int64 .
The maximum number of elements to buffer in an iterator over
this dataset.
|
output_
|
A list of tf. that has length >= 1 .
|
output_
|
A list of shapes (each a tf.TensorShape or list of ints ) that has length >= 1 .
|
slack_
|
An optional int . Defaults to 0 .
|
legacy_
|
An optional bool . Defaults to True .
|
buffer_
|
An optional int . Defaults to 0 .
|
metadata
|
An optional string . Defaults to "" .
|
name
|
A name for the operation (optional). |
Returns | |
---|---|
A Tensor of type variant .
|