LostTech.TensorFlow : API Documentation

Type OptimizationOptions

Namespace tensorflow.data.experimental

Parent OptionsBase

Interfaces IOptimizationOptions

Represents options for dataset optimizations.

You can set the optimization options of a dataset through the `experimental_optimization` property of tf.data.Options; the property is an instance of tf.data.experimental.OptimizationOptions.
Show Example
options = tf.data.Options()
            options.experimental_optimization.noop_elimination = True
            options.experimental_optimization.map_vectorization.enabled = True
            options.experimental_optimization.apply_default_optimizations = False
            dataset = dataset.with_options(options) 

Properties

Public properties

PropertyInfo apply_default_optimizations get; set;

Whether to apply default static optimizations. If False, only static optimizations that have been explicitly enabled will be applied.

object apply_default_optimizations_dyn get; set;

Whether to apply default static optimizations. If False, only static optimizations that have been explicitly enabled will be applied.

PropertyInfo autotune get; set;

Whether to automatically tune performance knobs. If None, defaults to True.

PropertyInfo autotune_algorithm get; set;

When autotuning is enabled (through `autotune`), identifies the algorithm to use for the autotuning optimization.

object autotune_algorithm_dyn get; set;

When autotuning is enabled (through `autotune`), identifies the algorithm to use for the autotuning optimization.

PropertyInfo autotune_buffers get; set;

When autotuning is enabled (through `autotune`), determines whether to also autotune buffer sizes for datasets with parallelism. If None, defaults to False.

object autotune_buffers_dyn get; set;

When autotuning is enabled (through `autotune`), determines whether to also autotune buffer sizes for datasets with parallelism. If None, defaults to False.

PropertyInfo autotune_cpu_budget get; set;

When autotuning is enabled (through `autotune`), determines the CPU budget to use. Values greater than the number of schedulable CPU cores are allowed but may result in CPU contention. If None, defaults to the number of schedulable CPU cores.

object autotune_cpu_budget_dyn get; set;

When autotuning is enabled (through `autotune`), determines the CPU budget to use. Values greater than the number of schedulable CPU cores are allowed but may result in CPU contention. If None, defaults to the number of schedulable CPU cores.

object autotune_dyn get; set;

Whether to automatically tune performance knobs. If None, defaults to True.

PropertyInfo filter_fusion get; set;

Whether to fuse filter transformations. If None, defaults to False.

object filter_fusion_dyn get; set;

Whether to fuse filter transformations. If None, defaults to False.

PropertyInfo filter_with_random_uniform_fusion get; set;

Whether to fuse filter dataset that predicts random_uniform < rate into a sampling dataset. If None, defaults to False.

object filter_with_random_uniform_fusion_dyn get; set;

Whether to fuse filter dataset that predicts random_uniform < rate into a sampling dataset. If None, defaults to False.

PropertyInfo hoist_random_uniform get; set;

Whether to hoist `tf.random_uniform()` ops out of map transformations. If None, defaults to False.

object hoist_random_uniform_dyn get; set;

Whether to hoist `tf.random_uniform()` ops out of map transformations. If None, defaults to False.

PropertyInfo map_and_batch_fusion get; set;

Whether to fuse map and batch transformations. If None, defaults to True.

object map_and_batch_fusion_dyn get; set;

Whether to fuse map and batch transformations. If None, defaults to True.

PropertyInfo map_and_filter_fusion get; set;

Whether to fuse map and filter transformations. If None, defaults to False.

object map_and_filter_fusion_dyn get; set;

Whether to fuse map and filter transformations. If None, defaults to False.

PropertyInfo map_fusion get; set;

Whether to fuse map transformations. If None, defaults to False.

object map_fusion_dyn get; set;

Whether to fuse map transformations. If None, defaults to False.

PropertyInfo map_parallelization get; set;

Whether to parallelize stateless map transformations. If None, defaults to False.

object map_parallelization_dyn get; set;

Whether to parallelize stateless map transformations. If None, defaults to False.

PropertyInfo map_vectorization get; set;

The map vectorization options associated with the dataset. See tf.data.experimental.MapVectorizationOptions for more details.

object map_vectorization_dyn get; set;

The map vectorization options associated with the dataset. See tf.data.experimental.MapVectorizationOptions for more details.

PropertyInfo noop_elimination get; set;

Whether to eliminate no-op transformations. If None, defaults to True.

object noop_elimination_dyn get; set;

Whether to eliminate no-op transformations. If None, defaults to True.

PropertyInfo parallel_batch get; set;

Whether to parallelize copying of batch elements. If None, defaults to False.

object parallel_batch_dyn get; set;

Whether to parallelize copying of batch elements. If None, defaults to False.

object PythonObject get;

PropertyInfo shuffle_and_repeat_fusion get; set;

Whether to fuse shuffle and repeat transformations. If None, defaults to True.

object shuffle_and_repeat_fusion_dyn get; set;

Whether to fuse shuffle and repeat transformations. If None, defaults to True.