Type Options
Namespace tensorflow.data
Parent OptionsBase
Interfaces IOptions
Represents options for tf.data.Dataset. An `Options` object can be, for instance, used to control which static
optimizations to apply or whether to use performance modeling to dynamically
tune the parallelism of operations such as
tf.data.Dataset.map
or
tf.data.Dataset.interleave
.
Methods
Properties
- experimental_deterministic
- experimental_deterministic_dyn
- experimental_distribute
- experimental_distribute_dyn
- experimental_optimization
- experimental_optimization_dyn
- experimental_slack
- experimental_slack_dyn
- experimental_stateful_whitelist
- experimental_stateful_whitelist_dyn
- experimental_stats
- experimental_stats_dyn
- experimental_threading
- experimental_threading_dyn
- PythonObject
Public instance methods
object merge(Options options)
Merges itself with the given
tf.data.Options
. The given tf.data.Options
can be merged as long as there does not exist an
attribute that is set to different values in `self` and `options`.
Parameters
-
Options
options - a
tf.data.Options
to merge with
Returns
-
object
- New `tf.data.Options()` object which is the result of merging self with
the input
tf.data.Options
.
object merge_dyn(object options)
Merges itself with the given
tf.data.Options
. The given tf.data.Options
can be merged as long as there does not exist an
attribute that is set to different values in `self` and `options`.
Parameters
-
object
options - a
tf.data.Options
to merge with
Returns
-
object
- New `tf.data.Options()` object which is the result of merging self with
the input
tf.data.Options
.
Public properties
PropertyInfo experimental_deterministic get; set;
Whether the outputs need to be produced in deterministic order. If None, defaults to True.
object experimental_deterministic_dyn get; set;
Whether the outputs need to be produced in deterministic order. If None, defaults to True.
PropertyInfo experimental_distribute get; set;
The distribution strategy options associated with the dataset. See
tf.data.experimental.DistributeOptions
for more details.
object experimental_distribute_dyn get; set;
The distribution strategy options associated with the dataset. See
tf.data.experimental.DistributeOptions
for more details.
PropertyInfo experimental_optimization get; set;
The optimization options associated with the dataset. See
tf.data.experimental.OptimizationOptions
for more details.
object experimental_optimization_dyn get; set;
The optimization options associated with the dataset. See
tf.data.experimental.OptimizationOptions
for more details.
PropertyInfo experimental_slack get; set;
Whether to introduce 'slack' in the last `prefetch` of the input pipeline, if it exists. This may reduce CPU contention with accelerator host-side activity at the start of a step. The slack frequency is determined by the number of devices attached to this input pipeline. If None, defaults to False.
object experimental_slack_dyn get; set;
Whether to introduce 'slack' in the last `prefetch` of the input pipeline, if it exists. This may reduce CPU contention with accelerator host-side activity at the start of a step. The slack frequency is determined by the number of devices attached to this input pipeline. If None, defaults to False.
PropertyInfo experimental_stateful_whitelist get; set;
By default, tf.data will refuse to serialize a dataset or checkpoint its iterator if the dataset contains a stateful op as the serialization / checkpointing won't be able to capture its state. Users can -- at their own risk -- override this restriction by explicitly whitelisting stateful ops by specifying them in this list.
object experimental_stateful_whitelist_dyn get; set;
By default, tf.data will refuse to serialize a dataset or checkpoint its iterator if the dataset contains a stateful op as the serialization / checkpointing won't be able to capture its state. Users can -- at their own risk -- override this restriction by explicitly whitelisting stateful ops by specifying them in this list.
PropertyInfo experimental_stats get; set;
The statistics options associated with the dataset. See
tf.data.experimental.StatsOptions
for more details.
object experimental_stats_dyn get; set;
The statistics options associated with the dataset. See
tf.data.experimental.StatsOptions
for more details.
PropertyInfo experimental_threading get; set;
The threading options associated with the dataset. See
tf.data.experimental.ThreadingOptions
for more details.
object experimental_threading_dyn get; set;
The threading options associated with the dataset. See
tf.data.experimental.ThreadingOptions
for more details.