doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
tf.data.experimental.service.DispatcherConfig Configuration class for tf.data service dispatchers. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.service.DispatcherConfig tf.data.experimental.service.DispatcherConfig( port=0, protocol='grpc', work...
tensorflow.data.experimental.service.dispatcherconfig
tf.data.experimental.service.DispatchServer An in-process tf.data service dispatch server. tf.data.experimental.service.DispatchServer( config=None, start=True ) A tf.data.experimental.service.DispatchServer coordinates a cluster of tf.data.experimental.service.WorkerServers. When the workers start, they register...
tensorflow.data.experimental.service.dispatchserver
tf.data.experimental.service.distribute A transformation that moves dataset processing to the tf.data service. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.service.distribute tf.data.experimental.service.distribute( processing_mode, service, job...
tensorflow.data.experimental.service.distribute
tf.data.experimental.service.from_dataset_id Creates a dataset which reads data from the tf.data service. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.service.from_dataset_id tf.data.experimental.service.from_dataset_id( processing_mode, service...
tensorflow.data.experimental.service.from_dataset_id
tf.data.experimental.service.register_dataset Registers a dataset with the tf.data service. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.service.register_dataset tf.data.experimental.service.register_dataset( service, dataset ) register_dataset...
tensorflow.data.experimental.service.register_dataset
tf.data.experimental.service.WorkerConfig Configuration class for tf.data service dispatchers. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.service.WorkerConfig tf.data.experimental.service.WorkerConfig( dispatcher_address, worker_address=None, ...
tensorflow.data.experimental.service.workerconfig
tf.data.experimental.service.WorkerServer An in-process tf.data service worker server. tf.data.experimental.service.WorkerServer( config, start=True ) A tf.data.experimental.service.WorkerServer performs tf.data.Dataset processing for user-defined datasets, and provides the resulting elements over RPC. A worker i...
tensorflow.data.experimental.service.workerserver
tf.data.experimental.shuffle_and_repeat View source on GitHub Shuffles and repeats a Dataset, reshuffling with each repetition. (deprecated) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.shuffle_and_repeat tf.data.experimental.shuffle_and_repe...
tensorflow.data.experimental.shuffle_and_repeat
tf.data.experimental.snapshot API to persist the output of the input dataset. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.snapshot tf.data.experimental.snapshot( path, compression='AUTO', reader_func=None, shard_func=None ) The snapshot API al...
tensorflow.data.experimental.snapshot
tf.data.experimental.SqlDataset View source on GitHub A Dataset consisting of the results from a SQL query. Inherits From: Dataset tf.data.experimental.SqlDataset( driver_name, data_source_name, query, output_types ) Args driver_name A 0-D tf.string tensor containing the database type. Currently, ...
tensorflow.data.experimental.sqldataset
tf.data.experimental.StatsAggregator View source on GitHub A stateful resource that aggregates statistics from one or more iterators. tf.data.experimental.StatsAggregator() To record statistics, use one of the custom transformation functions defined in this module when defining your tf.data.Dataset. All statis...
tensorflow.data.experimental.statsaggregator
tf.data.experimental.StatsOptions View source on GitHub Represents options for collecting dataset stats using StatsAggregator. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.StatsOptions tf.data.experimental.StatsOptions() You can set the stat...
tensorflow.data.experimental.statsoptions
tf.data.experimental.take_while View source on GitHub A transformation that stops dataset iteration based on a predicate. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.take_while tf.data.experimental.take_while( predicate ) Args pr...
tensorflow.data.experimental.take_while
tf.data.experimental.TFRecordWriter View source on GitHub Writes a dataset to a TFRecord file. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.TFRecordWriter tf.data.experimental.TFRecordWriter( filename, compression_type=None ) The element...
tensorflow.data.experimental.tfrecordwriter
tf.data.experimental.ThreadingOptions View source on GitHub Represents options for dataset threading. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.ThreadingOptions tf.data.experimental.ThreadingOptions() You can set the threading options of ...
tensorflow.data.experimental.threadingoptions
tf.data.experimental.to_variant View source on GitHub Returns a variant representing the given dataset. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.to_variant tf.data.experimental.to_variant( dataset ) Args dataset A tf.data.Da...
tensorflow.data.experimental.to_variant
tf.data.experimental.unbatch View source on GitHub Splits elements of a dataset into multiple elements on the batch dimension. (deprecated) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.unbatch tf.data.experimental.unbatch() Warning: THIS FUN...
tensorflow.data.experimental.unbatch
tf.data.experimental.unique View source on GitHub Creates a Dataset from another Dataset, discarding duplicates. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.unique tf.data.experimental.unique() Use this transformation to produce a dataset t...
tensorflow.data.experimental.unique
tf.data.FixedLengthRecordDataset View source on GitHub A Dataset of fixed-length records from one or more binary files. Inherits From: Dataset tf.data.FixedLengthRecordDataset( filenames, record_bytes, header_bytes=None, footer_bytes=None, buffer_size=None, compression_type=None, num_parallel_reads=None...
tensorflow.data.fixedlengthrecorddataset
tf.data.Iterator View source on GitHub Represents an iterator of a tf.data.Dataset. tf.data.Iterator is the primary mechanism for enumerating elements of a tf.data.Dataset. It supports the Python Iterator protocol, which means it can be iterated over using a for-loop: dataset = tf.data.Dataset.range(2) for elem...
tensorflow.data.iterator
tf.data.IteratorSpec Type specification for tf.data.Iterator. Inherits From: TypeSpec tf.data.IteratorSpec( element_spec ) For instance, tf.data.IteratorSpec can be used to define a tf.function that takes tf.data.Iterator as an input argument: @tf.function(input_signature=[tf.data.IteratorSpec( tf.TensorSpec(s...
tensorflow.data.iteratorspec
tf.data.Options View source on GitHub Represents options for tf.data.Dataset. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.Options tf.data.Options() A tf.data.Options object can be, for instance, used to control which static optimizations to apply to the...
tensorflow.data.options
tf.data.TextLineDataset View source on GitHub A Dataset comprising lines from one or more text files. Inherits From: Dataset tf.data.TextLineDataset( filenames, compression_type=None, buffer_size=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing one or...
tensorflow.data.textlinedataset
tf.data.TFRecordDataset View source on GitHub A Dataset comprising records from one or more TFRecord files. Inherits From: Dataset tf.data.TFRecordDataset( filenames, compression_type=None, buffer_size=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing ...
tensorflow.data.tfrecorddataset
Module: tf.debugging Public API for tf.debugging namespace. Modules experimental module: Public API for tf.debugging.experimental namespace. Functions Assert(...): Asserts that the given condition is true. assert_all_finite(...): Assert that the tensor does not contain any NaN's or Inf's. assert_equal(...): Assert the ...
tensorflow.debugging
tf.debugging.Assert View source on GitHub Asserts that the given condition is true. View aliases Main aliases tf.Assert Compat aliases for migration See Migration guide for more details. tf.compat.v1.Assert, tf.compat.v1.debugging.Assert tf.debugging.Assert( condition, data, summarize=None, name=None ) ...
tensorflow.debugging.assert
tf.debugging.assert_all_finite View source on GitHub Assert that the tensor does not contain any NaN's or Inf's. tf.debugging.assert_all_finite( x, message, name=None ) Args x Tensor to check. message Message to log on failure. name A name for this operation (optional). Returns...
tensorflow.debugging.assert_all_finite
tf.debugging.assert_equal View source on GitHub Assert the condition x == y holds element-wise. View aliases Main aliases tf.assert_equal tf.debugging.assert_equal( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] == y[i] holds for every pair of (possibly broadcast) elements of ...
tensorflow.debugging.assert_equal
tf.debugging.assert_greater View source on GitHub Assert the condition x > y holds element-wise. View aliases Main aliases tf.assert_greater tf.debugging.assert_greater( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] > y[i] holds for every pair of (possibly broadcast) elements...
tensorflow.debugging.assert_greater
tf.debugging.assert_greater_equal View source on GitHub Assert the condition x >= y holds element-wise. tf.debugging.assert_greater_equal( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] >= y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are e...
tensorflow.debugging.assert_greater_equal
tf.debugging.assert_integer View source on GitHub Assert that x is of integer dtype. tf.debugging.assert_integer( x, message=None, name=None ) If x has a non-integer type, message, as well as the dtype of x are printed, and InvalidArgumentError is raised. This can always be checked statically, so this meth...
tensorflow.debugging.assert_integer
tf.debugging.assert_less View source on GitHub Assert the condition x < y holds element-wise. View aliases Main aliases tf.assert_less tf.debugging.assert_less( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] < y[i] holds for every pair of (possibly broadcast) elements of x and...
tensorflow.debugging.assert_less
tf.debugging.assert_less_equal View source on GitHub Assert the condition x <= y holds element-wise. tf.debugging.assert_less_equal( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] <= y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, ...
tensorflow.debugging.assert_less_equal
tf.debugging.assert_near View source on GitHub Assert the condition x and y are close element-wise. tf.debugging.assert_near( x, y, rtol=None, atol=None, message=None, summarize=None, name=None ) This Op checks that x[i] - y[i] < atol + rtol * tf.abs(y[i]) holds for every pair of (possibly broadcast) eleme...
tensorflow.debugging.assert_near
tf.debugging.assert_negative View source on GitHub Assert the condition x < 0 holds element-wise. tf.debugging.assert_negative( x, message=None, summarize=None, name=None ) This Op checks that x[i] < 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not negative everywhere...
tensorflow.debugging.assert_negative
tf.debugging.assert_none_equal View source on GitHub Assert the condition x != y holds for all elements. tf.debugging.assert_none_equal( x, y, summarize=None, message=None, name=None ) This Op checks that x[i] != y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are emp...
tensorflow.debugging.assert_none_equal
tf.debugging.assert_non_negative View source on GitHub Assert the condition x >= 0 holds element-wise. tf.debugging.assert_non_negative( x, message=None, summarize=None, name=None ) This Op checks that x[i] >= 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not >= 0 ever...
tensorflow.debugging.assert_non_negative
tf.debugging.assert_non_positive View source on GitHub Assert the condition x <= 0 holds element-wise. tf.debugging.assert_non_positive( x, message=None, summarize=None, name=None ) This Op checks that x[i] <= 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not <= 0 ever...
tensorflow.debugging.assert_non_positive
tf.debugging.assert_positive View source on GitHub Assert the condition x > 0 holds element-wise. tf.debugging.assert_positive( x, message=None, summarize=None, name=None ) This Op checks that x[i] > 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not positive everywhere...
tensorflow.debugging.assert_positive
tf.debugging.assert_proper_iterable View source on GitHub Static assert that values is a "proper" iterable. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.assert_proper_iterable, tf.compat.v1.debugging.assert_proper_iterable tf.debugging.assert_proper_iterable( ...
tensorflow.debugging.assert_proper_iterable
tf.debugging.assert_rank View source on GitHub Assert that x has rank equal to rank. View aliases Main aliases tf.assert_rank tf.debugging.assert_rank( x, rank, message=None, name=None ) This Op checks that the rank of x is equal to rank. If x has a different rank, message, as well as the shape of x ar...
tensorflow.debugging.assert_rank
tf.debugging.assert_rank_at_least View source on GitHub Assert that x has rank of at least rank. tf.debugging.assert_rank_at_least( x, rank, message=None, name=None ) This Op checks that the rank of x is greater or equal to rank. If x has a rank lower than rank, message, as well as the shape of x are print...
tensorflow.debugging.assert_rank_at_least
tf.debugging.assert_rank_in View source on GitHub Assert that x has a rank in ranks. tf.debugging.assert_rank_in( x, ranks, message=None, name=None ) This Op checks that the rank of x is in ranks. If x has a different rank, message, as well as the shape of x are printed, and InvalidArgumentError is raised....
tensorflow.debugging.assert_rank_in
tf.debugging.assert_same_float_dtype View source on GitHub Validate and return float type based on tensors and dtype. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.assert_same_float_dtype, tf.compat.v1.debugging.assert_same_float_dtype tf.debugging.assert_same_...
tensorflow.debugging.assert_same_float_dtype
tf.debugging.assert_scalar View source on GitHub Asserts that the given tensor is a scalar. tf.debugging.assert_scalar( tensor, message=None, name=None ) This function raises ValueError unless it can be certain that the given tensor is a scalar. ValueError is also raised if the shape of tensor is unknown. ...
tensorflow.debugging.assert_scalar
tf.debugging.assert_shapes View source on GitHub Assert tensor shapes and dimension size relationships between tensors. tf.debugging.assert_shapes( shapes, data=None, summarize=None, message=None, name=None ) This Op checks that a collection of tensors shape relationships satisfies given constraints. Examp...
tensorflow.debugging.assert_shapes
tf.debugging.assert_type View source on GitHub Asserts that the given Tensor is of the specified type. tf.debugging.assert_type( tensor, tf_type, message=None, name=None ) This can always be checked statically, so this method returns nothing. Args tensor A Tensor or SparseTensor. tf_type A t...
tensorflow.debugging.assert_type
tf.debugging.check_numerics Checks a tensor for NaN and Inf values. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.check_numerics, tf.compat.v1.debugging.check_numerics tf.debugging.check_numerics( tensor, message, name=None ) When run, reports an InvalidArgument ...
tensorflow.debugging.check_numerics
tf.debugging.disable_check_numerics Disable the eager/graph unified numerics checking mechanism. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.disable_check_numerics tf.debugging.disable_check_numerics() This method can be used after a call to tf.debugging....
tensorflow.debugging.disable_check_numerics
tf.debugging.enable_check_numerics Enable tensor numerics checking in an eager/graph unified fashion. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.enable_check_numerics tf.debugging.enable_check_numerics( stack_height_limit=30, path_length_limit=50 ) T...
tensorflow.debugging.enable_check_numerics
Module: tf.debugging.experimental Public API for tf.debugging.experimental namespace. Functions disable_dump_debug_info(...): Disable the currently-enabled debugging dumping. enable_dump_debug_info(...): Enable dumping debugging information from a TensorFlow program.
tensorflow.debugging.experimental
tf.debugging.experimental.disable_dump_debug_info Disable the currently-enabled debugging dumping. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.experimental.disable_dump_debug_info tf.debugging.experimental.disable_dump_debug_info() If the enable_dump_debu...
tensorflow.debugging.experimental.disable_dump_debug_info
tf.debugging.experimental.enable_dump_debug_info Enable dumping debugging information from a TensorFlow program. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.experimental.enable_dump_debug_info tf.debugging.experimental.enable_dump_debug_info( dump_ro...
tensorflow.debugging.experimental.enable_dump_debug_info
tf.debugging.get_log_device_placement View source on GitHub Get if device placements are logged. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.get_log_device_placement tf.debugging.get_log_device_placement() Returns If device placements are lo...
tensorflow.debugging.get_log_device_placement
tf.debugging.is_numeric_tensor View source on GitHub Returns True if the elements of tensor are numbers. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.is_numeric_tensor, tf.compat.v1.is_numeric_tensor tf.debugging.is_numeric_tensor( tensor ) Spec...
tensorflow.debugging.is_numeric_tensor
tf.debugging.set_log_device_placement View source on GitHub Set if device placements should be logged. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.debugging.set_log_device_placement tf.debugging.set_log_device_placement( enabled ) Args enabled W...
tensorflow.debugging.set_log_device_placement
tf.device View source on GitHub Specifies the device for ops created/executed in this context. tf.device( device_name ) This function specifies the device to be used for ops created/executed in a particular context. Nested contexts will inherit and also create/execute their ops on the specified device. If ...
tensorflow.device
tf.DeviceSpec View source on GitHub Represents a (possibly partial) specification for a TensorFlow device. tf.DeviceSpec( job=None, replica=None, task=None, device_type=None, device_index=None ) DeviceSpecs are used throughout TensorFlow to describe where state is stored and computations occur. Using Devic...
tensorflow.devicespec
Module: tf.distribute Library for running a computation across multiple devices. The intent of this library is that you can write an algorithm in a stylized way and it will be usable with a variety of different tf.distribute.Strategy implementations. Each descendant will implement a different strategy for distributing ...
tensorflow.distribute
Module: tf.distribute.cluster_resolver Library imports for ClusterResolvers. This library contains all implementations of ClusterResolvers. ClusterResolvers are a way of specifying cluster information for distributed execution. Built on top of existing ClusterSpec framework, ClusterResolvers are a way for TensorFlow to...
tensorflow.distribute.cluster_resolver
tf.distribute.cluster_resolver.ClusterResolver View source on GitHub Abstract class for all implementations of ClusterResolvers. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.ClusterResolver This defines the skeleton for all implement...
tensorflow.distribute.cluster_resolver.clusterresolver
tf.distribute.cluster_resolver.GCEClusterResolver View source on GitHub ClusterResolver for Google Compute Engine. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.GCEClusterResolver tf.distribute.cluster_...
tensorflow.distribute.cluster_resolver.gceclusterresolver
tf.distribute.cluster_resolver.KubernetesClusterResolver View source on GitHub ClusterResolver for Kubernetes. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.KubernetesClusterResolver tf.distribute.clust...
tensorflow.distribute.cluster_resolver.kubernetesclusterresolver
tf.distribute.cluster_resolver.SimpleClusterResolver View source on GitHub Simple implementation of ClusterResolver that accepts all attributes. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.SimpleCluster...
tensorflow.distribute.cluster_resolver.simpleclusterresolver
tf.distribute.cluster_resolver.SlurmClusterResolver View source on GitHub ClusterResolver for system with Slurm workload manager. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.SlurmClusterResolver tf.di...
tensorflow.distribute.cluster_resolver.slurmclusterresolver
tf.distribute.cluster_resolver.TFConfigClusterResolver View source on GitHub Implementation of a ClusterResolver which reads the TF_CONFIG EnvVar. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.TFConfigClu...
tensorflow.distribute.cluster_resolver.tfconfigclusterresolver
tf.distribute.cluster_resolver.TPUClusterResolver View source on GitHub Cluster Resolver for Google Cloud TPUs. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.TPUClusterResolver tf.distribute.cluster_res...
tensorflow.distribute.cluster_resolver.tpuclusterresolver
tf.distribute.cluster_resolver.UnionResolver View source on GitHub Performs a union on underlying ClusterResolvers. Inherits From: ClusterResolver View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.UnionResolver tf.distribute.cluster_reso...
tensorflow.distribute.cluster_resolver.unionresolver
tf.distribute.CrossDeviceOps View source on GitHub Base class for cross-device reduction and broadcasting algorithms. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.CrossDeviceOps tf.distribute.CrossDeviceOps() The main purpose of this class is to be...
tensorflow.distribute.crossdeviceops
tf.distribute.DistributedDataset Represents a dataset distributed among devices and machines. A tf.distribute.DistributedDataset could be thought of as a "distributed" dataset. When you use tf.distribute API to scale training to multiple devices or machines, you also need to distribute the input data, which leads to a ...
tensorflow.distribute.distributeddataset
tf.distribute.DistributedIterator An iterator over tf.distribute.DistributedDataset. tf.distribute.DistributedIterator is the primary mechanism for enumerating elements of a tf.distribute.DistributedDataset. It supports the Python Iterator protocol, which means it can be iterated over using a for-loop or by fetching in...
tensorflow.distribute.distributediterator
tf.distribute.DistributedValues Base class for representing distributed values. tf.distribute.DistributedValues( values ) A subclass instance of tf.distribute.DistributedValues is created when creating variables within a distribution strategy, iterating a tf.distribute.DistributedDataset or through tf.distribute....
tensorflow.distribute.distributedvalues
Module: tf.distribute.experimental Public API for tf.distribute.experimental namespace. Modules coordinator module: Public API for tf.distribute.experimental.coordinator namespace. partitioners module: Public API for tf.distribute.experimental.partitioners namespace. Classes class CentralStorageStrategy: A one-machine ...
tensorflow.distribute.experimental
tf.distribute.experimental.CentralStorageStrategy View source on GitHub A one-machine strategy that puts all variables on a single device. Inherits From: Strategy tf.distribute.experimental.CentralStorageStrategy( compute_devices=None, parameter_device=None ) Variables are assigned to local CPU or the only...
tensorflow.distribute.experimental.centralstoragestrategy
tf.distribute.experimental.CollectiveHints Hints for collective operations like AllReduce. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.experimental.CollectiveHints tf.distribute.experimental.CollectiveHints( bytes_per_pack=0, timeout_seconds=None ) T...
tensorflow.distribute.experimental.collectivehints
tf.distribute.experimental.CommunicationImplementation Cross device communication implementation. View aliases Main aliases tf.distribute.experimental.CollectiveCommunication Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.experimental.CollectiveCommunication, tf.compat.v1....
tensorflow.distribute.experimental.communicationimplementation
tf.distribute.experimental.CommunicationOptions Options for cross device communications like All-reduce. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.experimental.CommunicationOptions tf.distribute.experimental.CommunicationOptions( bytes_per_pack=0, t...
tensorflow.distribute.experimental.communicationoptions
Module: tf.distribute.experimental.coordinator Public API for tf.distribute.experimental.coordinator namespace. Classes class ClusterCoordinator: An object to schedule and coordinate remote function execution. class PerWorkerValues: A container that holds a list of values, one value per worker. class RemoteValue: An as...
tensorflow.distribute.experimental.coordinator
tf.distribute.experimental.coordinator.ClusterCoordinator An object to schedule and coordinate remote function execution. tf.distribute.experimental.coordinator.ClusterCoordinator( strategy ) This class is used to create fault-tolerant resources and dispatch functions to remote TensorFlow servers. Currently, this...
tensorflow.distribute.experimental.coordinator.clustercoordinator
tf.distribute.experimental.coordinator.PerWorkerValues A container that holds a list of values, one value per worker. tf.distribute.experimental.coordinator.PerWorkerValues( values ) tf.distribute.experimental.coordinator.PerWorkerValues contains a collection of values, where each of the value is located one work...
tensorflow.distribute.experimental.coordinator.perworkervalues
tf.distribute.experimental.coordinator.RemoteValue An asynchronously available value of a scheduled function. This class is used as the return value of tf.distribute.experimental.coordinator.ClusterCoordinator.schedule where the underlying value becomes available at a later time once the function has been executed. Usi...
tensorflow.distribute.experimental.coordinator.remotevalue
tf.distribute.experimental.MultiWorkerMirroredStrategy View source on GitHub A distribution strategy for synchronous training on multiple workers. Inherits From: MultiWorkerMirroredStrategy, Strategy tf.distribute.experimental.MultiWorkerMirroredStrategy( communication=tf.distribute.experimental.CollectiveC...
tensorflow.distribute.experimental.multiworkermirroredstrategy
tf.distribute.experimental.ParameterServerStrategy View source on GitHub An multi-worker tf.distribute strategy with parameter servers. Inherits From: Strategy tf.distribute.experimental.ParameterServerStrategy( cluster_resolver, variable_partitioner=None ) Parameter server training is a common data-parall...
tensorflow.distribute.experimental.parameterserverstrategy
Module: tf.distribute.experimental.partitioners Public API for tf.distribute.experimental.partitioners namespace. Classes class FixedShardsPartitioner: Partitioner that allocates a fixed number of shards. class MaxSizePartitioner: Partitioner that keeps shards below max_shard_bytes. class MinSizePartitioner: Partitione...
tensorflow.distribute.experimental.partitioners
tf.distribute.experimental.partitioners.FixedShardsPartitioner Partitioner that allocates a fixed number of shards. Inherits From: Partitioner tf.distribute.experimental.partitioners.FixedShardsPartitioner( num_shards ) Examples: # standalone usage: partitioner = FixedShardsPartitioner(num_shards=2) partitions =...
tensorflow.distribute.experimental.partitioners.fixedshardspartitioner
tf.distribute.experimental.partitioners.MaxSizePartitioner Partitioner that keeps shards below max_shard_bytes. Inherits From: Partitioner tf.distribute.experimental.partitioners.MaxSizePartitioner( max_shard_bytes, max_shards=None, bytes_per_string=16 ) This partitioner ensures each shard has at most max_shard_b...
tensorflow.distribute.experimental.partitioners.maxsizepartitioner
tf.distribute.experimental.partitioners.MinSizePartitioner Partitioner that allocates a minimum size per shard. Inherits From: Partitioner tf.distribute.experimental.partitioners.MinSizePartitioner( min_shard_bytes=(256 << 10), max_shards=1, bytes_per_string=16 ) This partitioner ensures each shard has at least m...
tensorflow.distribute.experimental.partitioners.minsizepartitioner
tf.distribute.experimental.partitioners.Partitioner Partitioner base class: all partitiners inherit from this class. Partitioners should implement a __call__ method with the following signature: def __call__(self, shape, dtype, axis=0): # Partitions the given `shape` and returns the partition results. # See docstri...
tensorflow.distribute.experimental.partitioners.partitioner
tf.distribute.experimental.TPUStrategy View source on GitHub Synchronous training on TPUs and TPU Pods. Inherits From: Strategy tf.distribute.experimental.TPUStrategy( tpu_cluster_resolver=None, device_assignment=None ) To construct a TPUStrategy object, you need to run the initialization code as below: r...
tensorflow.distribute.experimental.tpustrategy
tf.distribute.experimental.ValueContext A class wrapping information needed by a distribute function. tf.distribute.experimental.ValueContext( replica_id_in_sync_group=0, num_replicas_in_sync=1 ) This is a context class that is passed to the value_fn in strategy.experimental_distribute_values_from_function and co...
tensorflow.distribute.experimental.valuecontext
tf.distribute.experimental_set_strategy View source on GitHub Set a tf.distribute.Strategy as current without with strategy.scope(). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.experimental_set_strategy tf.distribute.experimental_set_strategy( ...
tensorflow.distribute.experimental_set_strategy
tf.distribute.get_replica_context View source on GitHub Returns the current tf.distribute.ReplicaContext or None. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.get_replica_context tf.distribute.get_replica_context() Returns None if in a cross-replic...
tensorflow.distribute.get_replica_context
tf.distribute.get_strategy View source on GitHub Returns the current tf.distribute.Strategy object. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.get_strategy tf.distribute.get_strategy() Typically only used in a cross-replica context: if tf.distrib...
tensorflow.distribute.get_strategy
tf.distribute.has_strategy View source on GitHub Return if there is a current non-default tf.distribute.Strategy. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.has_strategy tf.distribute.has_strategy() assert not tf.distribute.has_strategy() with st...
tensorflow.distribute.has_strategy
tf.distribute.HierarchicalCopyAllReduce View source on GitHub Hierarchical copy all-reduce implementation of CrossDeviceOps. Inherits From: CrossDeviceOps View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.HierarchicalCopyAllReduce tf.distribute.Hierarchi...
tensorflow.distribute.hierarchicalcopyallreduce
tf.distribute.InputContext View source on GitHub A class wrapping information needed by an input function. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.InputContext tf.distribute.InputContext( num_input_pipelines=1, input_pipeline_id=0, num_repl...
tensorflow.distribute.inputcontext
tf.distribute.InputOptions Run options for experimental_distribute_dataset(s_from_function). tf.distribute.InputOptions( experimental_prefetch_to_device=True, experimental_replication_mode=tf.distribute.InputReplicationMode.PER_WORKER, experimental_place_dataset_on_device=False ) This can be used to hold ...
tensorflow.distribute.inputoptions
tf.distribute.InputReplicationMode View source on GitHub Replication mode for input function. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.InputReplicationMode PER_WORKER: The input function will be called on each worker independently, creating as ...
tensorflow.distribute.inputreplicationmode
tf.distribute.in_cross_replica_context View source on GitHub Returns True if in a cross-replica context. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.in_cross_replica_context tf.distribute.in_cross_replica_context() See tf.distribute.get_replica_co...
tensorflow.distribute.in_cross_replica_context
tf.distribute.MirroredStrategy View source on GitHub Synchronous training across multiple replicas on one machine. Inherits From: Strategy tf.distribute.MirroredStrategy( devices=None, cross_device_ops=None ) This strategy is typically used for training on one machine with multiple GPUs. For TPUs, use tf.d...
tensorflow.distribute.mirroredstrategy