doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
tf.compat.v1.WholeFileReader A Reader that outputs the entire contents of a file as a value. Inherits From: ReaderBase
tf.compat.v1.WholeFileReader(
name=None
)
To use, enqueue filenames in a Queue. The output of Read will be a filename (key) and the contents of that file (value). See ReaderBase for supported met... | tensorflow.compat.v1.wholefilereader |
tf.compat.v1.wrap_function Wraps the TF 1.x function fn into a graph function.
tf.compat.v1.wrap_function(
fn, signature, name=None
)
The python function fn will be called once with symbolic arguments specified in the signature, traced, and turned into a graph function. Any variables created by fn will be owned b... | tensorflow.compat.v1.wrap_function |
Module: tf.compat.v1.xla Public API for tf.xla namespace. Modules experimental module: Public API for tf.xla.experimental namespace. | tensorflow.compat.v1.xla |
Module: tf.compat.v1.xla.experimental Public API for tf.xla.experimental namespace. Functions compile(...): Builds an operator that compiles and runs computation with XLA. (deprecated) jit_scope(...): Enable or disable JIT compilation of operators within the scope. | tensorflow.compat.v1.xla.experimental |
tf.compat.v1.zeros_like Creates a tensor with all elements set to zero.
tf.compat.v1.zeros_like(
tensor, dtype=None, name=None, optimize=True
)
See also tf.zeros. Given a single tensor (tensor), this operation returns a tensor of the same type and shape as tensor with all elements set to zero. Optionally, you can... | tensorflow.compat.v1.zeros_like |
tf.concat View source on GitHub Concatenates tensors along one dimension. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.concat
tf.concat(
values, axis, name='concat'
)
See also tf.tile, tf.stack, tf.repeat. Concatenates the list of tensors values along dim... | tensorflow.concat |
tf.cond View source on GitHub Return true_fn() if the predicate pred is true else false_fn().
tf.cond(
pred, true_fn=None, false_fn=None, name=None
)
true_fn and false_fn both return lists of output tensors. true_fn and false_fn must have the same non-zero number and type of outputs. Warning: Any Tensors o... | tensorflow.cond |
Module: tf.config Public API for tf.config namespace. Modules experimental module: Public API for tf.config.experimental namespace. optimizer module: Public API for tf.config.optimizer namespace. threading module: Public API for tf.config.threading namespace. Classes class LogicalDevice: Abstraction for a logical devic... | tensorflow.config |
Module: tf.config.experimental Public API for tf.config.experimental namespace. Classes class ClusterDeviceFilters: Represent a collection of device filters for the remote workers in cluster. class VirtualDeviceConfiguration: Configuration class for a logical devices. Functions disable_mlir_bridge(...): Disables experi... | tensorflow.config.experimental |
tf.config.experimental.ClusterDeviceFilters Represent a collection of device filters for the remote workers in cluster. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.ClusterDeviceFilters
tf.config.experimental.ClusterDeviceFilters()
Note: this is... | tensorflow.config.experimental.clusterdevicefilters |
tf.config.experimental.disable_mlir_bridge Disables experimental MLIR-Based TensorFlow Compiler Bridge. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.disable_mlir_bridge
tf.config.experimental.disable_mlir_bridge() | tensorflow.config.experimental.disable_mlir_bridge |
tf.config.experimental.disable_mlir_graph_optimization Disables experimental MLIR-Based TensorFlow Compiler Optimizations. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.disable_mlir_graph_optimization
tf.config.experimental.disable_mlir_graph_optim... | tensorflow.config.experimental.disable_mlir_graph_optimization |
tf.config.experimental.enable_mlir_bridge Enables experimental MLIR-Based TensorFlow Compiler Bridge. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.enable_mlir_bridge
tf.config.experimental.enable_mlir_bridge()
DO NOT USE, DEV AND TESTING ONLY AT ... | tensorflow.config.experimental.enable_mlir_bridge |
tf.config.experimental.enable_mlir_graph_optimization Enables experimental MLIR-Based TensorFlow Compiler Optimizations. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.enable_mlir_graph_optimization
tf.config.experimental.enable_mlir_graph_optimizat... | tensorflow.config.experimental.enable_mlir_graph_optimization |
tf.config.experimental.enable_tensor_float_32_execution Enable or disable the use of TensorFloat-32 on supported hardware. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.enable_tensor_float_32_execution
tf.config.experimental.enable_tensor_float_32_... | tensorflow.config.experimental.enable_tensor_float_32_execution |
tf.config.experimental.get_device_details Returns details about a physical devices. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.get_device_details
tf.config.experimental.get_device_details(
device
)
This API takes in a tf.config.PhysicalDevi... | tensorflow.config.experimental.get_device_details |
tf.config.experimental.get_device_policy View source on GitHub Gets the current device policy. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.get_device_policy
tf.config.experimental.get_device_policy()
The device policy controls how operati... | tensorflow.config.experimental.get_device_policy |
tf.config.experimental.get_memory_growth View source on GitHub Get if memory growth is enabled for a PhysicalDevice. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.get_memory_growth
tf.config.experimental.get_memory_growth(
device
)
If m... | tensorflow.config.experimental.get_memory_growth |
tf.config.experimental.get_memory_usage Get the memory usage, in bytes, for the chosen device. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.get_memory_usage
tf.config.experimental.get_memory_usage(
device
)
See https://www.tensorflow.org/api_... | tensorflow.config.experimental.get_memory_usage |
tf.config.experimental.get_synchronous_execution View source on GitHub Gets whether operations are executed synchronously or asynchronously. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.get_synchronous_execution
tf.config.experimental.get_s... | tensorflow.config.experimental.get_synchronous_execution |
tf.config.experimental.set_device_policy View source on GitHub Sets the current thread device policy. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.set_device_policy
tf.config.experimental.set_device_policy(
device_policy
)
The device p... | tensorflow.config.experimental.set_device_policy |
tf.config.experimental.set_memory_growth View source on GitHub Set if memory growth should be enabled for a PhysicalDevice. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.set_memory_growth
tf.config.experimental.set_memory_growth(
device,... | tensorflow.config.experimental.set_memory_growth |
tf.config.experimental.set_synchronous_execution View source on GitHub Specifies whether operations are executed synchronously or asynchronously. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.set_synchronous_execution
tf.config.experimental.... | tensorflow.config.experimental.set_synchronous_execution |
tf.config.experimental.tensor_float_32_execution_enabled Returns whether TensorFloat-32 is enabled. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental.tensor_float_32_execution_enabled
tf.config.experimental.tensor_float_32_execution_enabled()
By defau... | tensorflow.config.experimental.tensor_float_32_execution_enabled |
tf.config.experimental_connect_to_cluster View source on GitHub Connects to the given cluster. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental_connect_to_cluster
tf.config.experimental_connect_to_cluster(
cluster_spec_or_resolver, job_name... | tensorflow.config.experimental_connect_to_cluster |
tf.config.experimental_connect_to_host View source on GitHub Connects to a single machine to enable remote execution on it. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental_connect_to_host
tf.config.experimental_connect_to_host(
remote_host... | tensorflow.config.experimental_connect_to_host |
tf.config.experimental_functions_run_eagerly Returns the value of the experimental_run_functions_eagerly setting. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental_functions_run_eagerly
tf.config.experimental_functions_run_eagerly()
Warni... | tensorflow.config.experimental_functions_run_eagerly |
tf.config.experimental_run_functions_eagerly View source on GitHub Enables / disables eager execution of tf.functions. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.experimental_run_functions_eagerly
tf.config.experimental_run_functions_eage... | tensorflow.config.experimental_run_functions_eagerly |
tf.config.functions_run_eagerly Returns the value of the run_functions_eagerly setting. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.functions_run_eagerly
tf.config.functions_run_eagerly() | tensorflow.config.functions_run_eagerly |
tf.config.get_logical_device_configuration Get the virtual device configuration for a tf.config.PhysicalDevice. View aliases Main aliases
tf.config.experimental.get_virtual_device_configuration Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.get_virtual_device_conf... | tensorflow.config.get_logical_device_configuration |
tf.config.get_soft_device_placement View source on GitHub Get if soft device placement is enabled. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.get_soft_device_placement
tf.config.get_soft_device_placement()
If enabled, an op will be placed on CPU if a... | tensorflow.config.get_soft_device_placement |
tf.config.get_visible_devices Get the list of visible physical devices. View aliases Main aliases
tf.config.experimental.get_visible_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.get_visible_devices, tf.compat.v1.config.get_visible_devices
tf.config.get... | tensorflow.config.get_visible_devices |
tf.config.list_logical_devices Return a list of logical devices created by runtime. View aliases Main aliases
tf.config.experimental.list_logical_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.list_logical_devices, tf.compat.v1.config.list_logical_devices ... | tensorflow.config.list_logical_devices |
tf.config.list_physical_devices Return a list of physical devices visible to the host runtime. View aliases Main aliases
tf.config.experimental.list_physical_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.list_physical_devices, tf.compat.v1.config.list_phy... | tensorflow.config.list_physical_devices |
tf.config.LogicalDevice Abstraction for a logical device initialized by the runtime. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.LogicalDevice
tf.config.LogicalDevice(
name, device_type
)
A tf.config.LogicalDevice corresponds to an initialized logical de... | tensorflow.config.logicaldevice |
tf.config.LogicalDeviceConfiguration Configuration class for a logical devices. View aliases Main aliases
tf.config.experimental.VirtualDeviceConfiguration Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.LogicalDeviceConfiguration, tf.compat.v1.config.experimental.VirtualDevice... | tensorflow.config.logicaldeviceconfiguration |
Module: tf.config.optimizer Public API for tf.config.optimizer namespace. Functions get_experimental_options(...): Get experimental optimizer options. get_jit(...): Get if JIT compilation is enabled. set_experimental_options(...): Set experimental optimizer options. set_jit(...): Set if JIT compilation is enabled. | tensorflow.config.optimizer |
tf.config.optimizer.get_experimental_options View source on GitHub Get experimental optimizer options. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.optimizer.get_experimental_options
tf.config.optimizer.get_experimental_options()
Refer to tf.config.opt... | tensorflow.config.optimizer.get_experimental_options |
tf.config.optimizer.get_jit View source on GitHub Get if JIT compilation is enabled. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.optimizer.get_jit
tf.config.optimizer.get_jit()
Note that optimizations are only applied to code that is compiled into a g... | tensorflow.config.optimizer.get_jit |
tf.config.optimizer.set_experimental_options View source on GitHub Set experimental optimizer options. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.optimizer.set_experimental_options
tf.config.optimizer.set_experimental_options(
options
)
Note that... | tensorflow.config.optimizer.set_experimental_options |
tf.config.optimizer.set_jit View source on GitHub Set if JIT compilation is enabled. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.optimizer.set_jit
tf.config.optimizer.set_jit(
enabled
)
Note that optimizations are only applied to code that is comp... | tensorflow.config.optimizer.set_jit |
tf.config.PhysicalDevice Abstraction for a locally visible physical device. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.PhysicalDevice
tf.config.PhysicalDevice(
name, device_type
)
TensorFlow can utilize various devices such as the CPU or multiple GPUs f... | tensorflow.config.physicaldevice |
tf.config.run_functions_eagerly Enables / disables eager execution of tf.functions. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.run_functions_eagerly
tf.config.run_functions_eagerly(
run_eagerly
)
Calling tf.config.run_functions_eagerly(True) will make a... | tensorflow.config.run_functions_eagerly |
tf.config.set_logical_device_configuration Set the logical device configuration for a tf.config.PhysicalDevice. View aliases Main aliases
tf.config.experimental.set_virtual_device_configuration Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.set_virtual_device_conf... | tensorflow.config.set_logical_device_configuration |
tf.config.set_soft_device_placement View source on GitHub Set if soft device placement is enabled. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.set_soft_device_placement
tf.config.set_soft_device_placement(
enabled
)
If enabled, an op will be place... | tensorflow.config.set_soft_device_placement |
tf.config.set_visible_devices Set the list of visible devices. View aliases Main aliases
tf.config.experimental.set_visible_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.set_visible_devices, tf.compat.v1.config.set_visible_devices
tf.config.set_visible_... | tensorflow.config.set_visible_devices |
Module: tf.config.threading Public API for tf.config.threading namespace. Functions get_inter_op_parallelism_threads(...): Get number of threads used for parallelism between independent operations. get_intra_op_parallelism_threads(...): Get number of threads used within an individual op for parallelism. set_inter_op_pa... | tensorflow.config.threading |
tf.config.threading.get_inter_op_parallelism_threads View source on GitHub Get number of threads used for parallelism between independent operations. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.threading.get_inter_op_parallelism_threads
tf.config.threa... | tensorflow.config.threading.get_inter_op_parallelism_threads |
tf.config.threading.get_intra_op_parallelism_threads View source on GitHub Get number of threads used within an individual op for parallelism. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.threading.get_intra_op_parallelism_threads
tf.config.threading.ge... | tensorflow.config.threading.get_intra_op_parallelism_threads |
tf.config.threading.set_inter_op_parallelism_threads View source on GitHub Set number of threads used for parallelism between independent operations. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.threading.set_inter_op_parallelism_threads
tf.config.threa... | tensorflow.config.threading.set_inter_op_parallelism_threads |
tf.config.threading.set_intra_op_parallelism_threads View source on GitHub Set number of threads used within an individual op for parallelism. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.config.threading.set_intra_op_parallelism_threads
tf.config.threading.se... | tensorflow.config.threading.set_intra_op_parallelism_threads |
tf.constant View source on GitHub Creates a constant tensor from a tensor-like object.
tf.constant(
value, dtype=None, shape=None, name='Const'
)
Note: All eager tf.Tensor values are immutable (in contrast to tf.Variable). There is nothing especially constant about the value returned from tf.constant. Thi... | tensorflow.constant |
tf.constant_initializer Initializer that generates tensors with constant values.
tf.constant_initializer(
value=0
)
Initializers allow you to pre-specify an initialization strategy, encoded in the Initializer object, without knowing the shape and dtype of the variable being initialized. tf.constant_initializer re... | tensorflow.constant_initializer |
tf.control_dependencies View source on GitHub Wrapper for Graph.control_dependencies() using the default graph. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.control_dependencies
tf.control_dependencies(
control_inputs
)
See tf.Graph.control_dependencies f... | tensorflow.control_dependencies |
tf.convert_to_tensor View source on GitHub Converts the given value to a Tensor.
tf.convert_to_tensor(
value, dtype=None, dtype_hint=None, name=None
)
This function converts Python objects of various types to Tensor objects. It accepts Tensor objects, numpy arrays, Python lists, and Python scalars. For exa... | tensorflow.convert_to_tensor |
tf.CriticalSection View source on GitHub Critical section. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.CriticalSection
tf.CriticalSection(
name=None, shared_name=None, critical_section_def=None, import_scope=None
)
A CriticalSection object is a resource ... | tensorflow.criticalsection |
tf.custom_gradient View source on GitHub Decorator to define a function with a custom gradient. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.custom_gradient
tf.custom_gradient(
f=None
)
This decorator allows fine grained control over the gradients of a se... | tensorflow.custom_gradient |
Module: tf.data tf.data.Dataset API for input pipelines. See Importing Data for an overview. Modules experimental module: Experimental API for building input pipelines. Classes class Dataset: Represents a potentially large set of elements. class DatasetSpec: Type specification for tf.data.Dataset. class FixedLengthReco... | tensorflow.data |
tf.data.Dataset View source on GitHub Represents a potentially large set of elements.
tf.data.Dataset(
variant_tensor
)
The tf.data.Dataset API supports writing descriptive and efficient input pipelines. Dataset usage follows a common pattern: Create a source dataset from your input data. Apply dataset tr... | tensorflow.data.dataset |
tf.data.DatasetSpec View source on GitHub Type specification for tf.data.Dataset. Inherits From: TypeSpec View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.DatasetSpec, tf.compat.v1.data.experimental.DatasetStructure
tf.data.DatasetSpec(
element_spec, data... | tensorflow.data.datasetspec |
Module: tf.data.experimental Experimental API for building input pipelines. This module contains experimental Dataset sources and transformations that can be used in conjunction with the tf.data.Dataset API. Note that the tf.data.experimental API is not subject to the same backwards compatibility guarantees as tf.data,... | tensorflow.data.experimental |
tf.data.experimental.assert_cardinality Asserts the cardinality of the input dataset. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.assert_cardinality
tf.data.experimental.assert_cardinality(
expected_cardinality
)
Note: The following assumes t... | tensorflow.data.experimental.assert_cardinality |
tf.data.experimental.AutoShardPolicy Represents the type of auto-sharding we enable. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.AutoShardPolicy Please see the DistributeOptions.auto_shard_policy documentation for more information on each type of au... | tensorflow.data.experimental.autoshardpolicy |
tf.data.experimental.bucket_by_sequence_length View source on GitHub A transformation that buckets elements in a Dataset by length. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.bucket_by_sequence_length
tf.data.experimental.bucket_by_sequence... | tensorflow.data.experimental.bucket_by_sequence_length |
tf.data.experimental.bytes_produced_stats View source on GitHub Records the number of bytes produced by each element of the input dataset. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.bytes_produced_stats
tf.data.experimental.bytes_produced_s... | tensorflow.data.experimental.bytes_produced_stats |
tf.data.experimental.cardinality View source on GitHub Returns the cardinality of dataset, if known. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.cardinality
tf.data.experimental.cardinality(
dataset
)
The operation returns the cardinali... | tensorflow.data.experimental.cardinality |
tf.data.experimental.CheckpointInputPipelineHook View source on GitHub Checkpoints input pipeline state every N steps or seconds. Inherits From: SessionRunHook View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.CheckpointInputPipelineHook
tf.data.e... | tensorflow.data.experimental.checkpointinputpipelinehook |
tf.data.experimental.choose_from_datasets View source on GitHub Creates a dataset that deterministically chooses elements from datasets.
tf.data.experimental.choose_from_datasets(
datasets, choice_dataset
)
For example, given the following datasets: datasets = [tf.data.Dataset.from_tensors("foo").repeat(),... | tensorflow.data.experimental.choose_from_datasets |
tf.data.experimental.copy_to_device View source on GitHub A transformation that copies dataset elements to the given target_device. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.copy_to_device
tf.data.experimental.copy_to_device(
target_de... | tensorflow.data.experimental.copy_to_device |
tf.data.experimental.Counter View source on GitHub Creates a Dataset that counts from start in steps of size step.
tf.data.experimental.Counter(
start=0, step=1, dtype=tf.dtypes.int64
)
For example: Dataset.count() == [0, 1, 2, ...)
Dataset.count(2) == [2, 3, ...)
Dataset.count(2, 5) == [2, 7, 12, ...)
Dat... | tensorflow.data.experimental.counter |
tf.data.experimental.CsvDataset View source on GitHub A Dataset comprising lines from one or more CSV files. Inherits From: Dataset
tf.data.experimental.CsvDataset(
filenames, record_defaults, compression_type=None, buffer_size=None,
header=False, field_delim=',', use_quote_delim=True,
na_value='', ... | tensorflow.data.experimental.csvdataset |
tf.data.experimental.dense_to_ragged_batch A transformation that batches ragged elements into tf.RaggedTensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.dense_to_ragged_batch
tf.data.experimental.dense_to_ragged_batch(
batch_size, drop_remai... | tensorflow.data.experimental.dense_to_ragged_batch |
tf.data.experimental.dense_to_sparse_batch View source on GitHub A transformation that batches ragged elements into tf.sparse.SparseTensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.dense_to_sparse_batch
tf.data.experimental.dense_to_spar... | tensorflow.data.experimental.dense_to_sparse_batch |
tf.data.experimental.DistributeOptions View source on GitHub Represents options for distributed data processing. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.DistributeOptions
tf.data.experimental.DistributeOptions()
You can set the distribu... | tensorflow.data.experimental.distributeoptions |
tf.data.experimental.enumerate_dataset View source on GitHub A transformation that enumerates the elements of a dataset. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.enumerate_dataset
tf.data.experimental.enumerate_dataset(
s... | tensorflow.data.experimental.enumerate_dataset |
tf.data.experimental.from_variant View source on GitHub Constructs a dataset from the given variant and structure. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.from_variant
tf.data.experimental.from_variant(
variant, structure
)
Arg... | tensorflow.data.experimental.from_variant |
tf.data.experimental.get_next_as_optional View source on GitHub Returns a tf.experimental.Optional with the next element of the iterator. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.get_next_as_optional
tf.data.experimental.get_... | tensorflow.data.experimental.get_next_as_optional |
tf.data.experimental.get_single_element View source on GitHub Returns the single element in dataset as a nested structure of tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.get_single_element
tf.data.experimental.get_single_element(
... | tensorflow.data.experimental.get_single_element |
tf.data.experimental.get_structure View source on GitHub Returns the type signature for elements of the input dataset / iterator. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.get_structure
tf.data.experimental.get_structure(
dataset_or_it... | tensorflow.data.experimental.get_structure |
tf.data.experimental.group_by_reducer View source on GitHub A transformation that groups elements and performs a reduction. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.group_by_reducer
tf.data.experimental.group_by_reducer(
key_func, red... | tensorflow.data.experimental.group_by_reducer |
tf.data.experimental.group_by_window View source on GitHub A transformation that groups windows of elements by key and reduces them. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.group_by_window
tf.data.experimental.group_by_window(
key_fu... | tensorflow.data.experimental.group_by_window |
tf.data.experimental.ignore_errors View source on GitHub Creates a Dataset from another Dataset and silently ignores any errors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.ignore_errors
tf.data.experimental.ignore_errors(
log_warning=Fa... | tensorflow.data.experimental.ignore_errors |
tf.data.experimental.latency_stats View source on GitHub Records the latency of producing each element of the input dataset. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.latency_stats
tf.data.experimental.latency_stats(
tag
)
To consume ... | tensorflow.data.experimental.latency_stats |
tf.data.experimental.load Loads a previously saved dataset.
tf.data.experimental.load(
path, element_spec, compression=None, reader_func=None
)
Example usage:
import tempfile
path = os.path.join(tempfile.gettempdir(), "saved_data")
# Save a dataset
dataset = tf.data.Dataset.range(2)
tf.data.experimental.save(dat... | tensorflow.data.experimental.load |
tf.data.experimental.make_batched_features_dataset View source on GitHub Returns a Dataset of feature dictionaries from Example protos.
tf.data.experimental.make_batched_features_dataset(
file_pattern, batch_size, features, reader=None, label_key=None,
reader_args=None, num_epochs=None, shuffle=True, sh... | tensorflow.data.experimental.make_batched_features_dataset |
tf.data.experimental.make_csv_dataset View source on GitHub Reads CSV files into a dataset.
tf.data.experimental.make_csv_dataset(
file_pattern, batch_size, column_names=None, column_defaults=None,
label_name=None, select_columns=None, field_delim=',',
use_quote_delim=True, na_value='', header=True,... | tensorflow.data.experimental.make_csv_dataset |
tf.data.experimental.make_saveable_from_iterator View source on GitHub Returns a SaveableObject for saving/restoring iterator state using Saver. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.make_saveable_from_iterator
tf.data.exp... | tensorflow.data.experimental.make_saveable_from_iterator |
tf.data.experimental.MapVectorizationOptions View source on GitHub Represents options for the MapVectorization optimization. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.MapVectorizationOptions
tf.data.experimental.MapVectorizationOptions()
... | tensorflow.data.experimental.mapvectorizationoptions |
tf.data.experimental.map_and_batch View source on GitHub Fused implementation of map and batch. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.map_and_batch
tf.data.experimental.map_and_batch(
map_func, batch_size, num_parallel... | tensorflow.data.experimental.map_and_batch |
tf.data.experimental.OptimizationOptions View source on GitHub Represents options for dataset optimizations. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.OptimizationOptions
tf.data.experimental.OptimizationOptions()
You can set the optimiza... | tensorflow.data.experimental.optimizationoptions |
tf.data.experimental.parallel_interleave View source on GitHub A parallel version of the Dataset.interleave() transformation. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.parallel_interleave
tf.data.experimental.parallel_interlea... | tensorflow.data.experimental.parallel_interleave |
tf.data.experimental.parse_example_dataset View source on GitHub A transformation that parses Example protos into a dict of tensors. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.parse_example_dataset
tf.data.experimental.parse_example_dataset... | tensorflow.data.experimental.parse_example_dataset |
tf.data.experimental.prefetch_to_device View source on GitHub A transformation that prefetches dataset values to the given device. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.prefetch_to_device
tf.data.experimental.prefetch_to_device(
de... | tensorflow.data.experimental.prefetch_to_device |
tf.data.experimental.RandomDataset View source on GitHub A Dataset of pseudorandom values. Inherits From: Dataset
tf.data.experimental.RandomDataset(
seed=None
)
Attributes
element_spec The type specification of an element of this dataset.
dataset = tf.data.Dataset.from_tensor_slices([1, 2, 3])
d... | tensorflow.data.experimental.randomdataset |
tf.data.experimental.Reducer View source on GitHub A reducer is used for reducing a set of elements. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.Reducer
tf.data.experimental.Reducer(
init_func, reduce_func, finalize_func
)
A reducer is ... | tensorflow.data.experimental.reducer |
tf.data.experimental.rejection_resample View source on GitHub A transformation that resamples a dataset to achieve a target distribution. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.rejection_resample
tf.data.experimental.rejection_resample(... | tensorflow.data.experimental.rejection_resample |
tf.data.experimental.sample_from_datasets View source on GitHub Samples elements at random from the datasets in datasets.
tf.data.experimental.sample_from_datasets(
datasets, weights=None, seed=None
)
Args
datasets A list of tf.data.Dataset objects with compatible structure.
weights (Optiona... | tensorflow.data.experimental.sample_from_datasets |
tf.data.experimental.save Saves the content of the given dataset.
tf.data.experimental.save(
dataset, path, compression=None, shard_func=None
)
Example usage:
import tempfile
path = os.path.join(tempfile.gettempdir(), "saved_data")
# Save a dataset
dataset = tf.data.Dataset.range(2)
tf.data.experimental.save(dat... | tensorflow.data.experimental.save |
tf.data.experimental.scan View source on GitHub A transformation that scans a function across an input dataset. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.data.experimental.scan
tf.data.experimental.scan(
initial_state, scan_func
)
This transformation i... | tensorflow.data.experimental.scan |
Module: tf.data.experimental.service API for using the tf.data service. This module contains: tf.data server implementations for running the tf.data service. A distribute dataset transformation that moves a dataset's preprocessing to happen in the tf.data service. The tf.data service offers a way to improve training ... | tensorflow.data.experimental.service |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.