Module: tf.config
Stay organized with collections
Save and categorize content based on your preferences.
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 device initialized by the runtime.
class LogicalDeviceConfiguration
: Configuration class for a logical devices.
class PhysicalDevice
: Abstraction for a locally visible physical device.
Functions
experimental_connect_to_cluster(...)
: Connects to the given cluster.
experimental_connect_to_host(...)
: Connects to a single machine to enable remote execution on it.
experimental_functions_run_eagerly(...)
: Returns the value of the experimental_run_functions_eagerly
setting. (deprecated)
experimental_run_functions_eagerly(...)
: Enables / disables eager execution of tf.function
s. (deprecated)
functions_run_eagerly(...)
: Returns the value of the run_functions_eagerly
setting.
get_logical_device_configuration(...)
: Get the virtual device configuration for a tf.config.PhysicalDevice
.
get_soft_device_placement(...)
: Return status of soft device placement flag.
get_visible_devices(...)
: Get the list of visible physical devices.
list_logical_devices(...)
: Return a list of logical devices created by runtime.
list_physical_devices(...)
: Return a list of physical devices visible to the host runtime.
run_functions_eagerly(...)
: Enables / disables eager execution of tf.function
s.
set_logical_device_configuration(...)
: Set the logical device configuration for a tf.config.PhysicalDevice
.
set_soft_device_placement(...)
: Enable or disable soft device placement.
set_visible_devices(...)
: Set the list of visible devices.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-03-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-27 UTC."],[],[],null,["# Module: tf.config\n\n\u003cbr /\u003e\n\nPublic API for tf.config namespace.\n\nModules\n-------\n\n[`experimental`](../tf/config/experimental) module: Public API for tf.config.experimental namespace.\n\n[`optimizer`](../tf/config/optimizer) module: Public API for tf.config.optimizer namespace.\n\n[`threading`](../tf/config/threading) module: Public API for tf.config.threading namespace.\n\nClasses\n-------\n\n[`class LogicalDevice`](../tf/config/LogicalDevice): Abstraction for a logical device initialized by the runtime.\n\n[`class LogicalDeviceConfiguration`](../tf/config/LogicalDeviceConfiguration): Configuration class for a logical devices.\n\n[`class PhysicalDevice`](../tf/config/PhysicalDevice): Abstraction for a locally visible physical device.\n\nFunctions\n---------\n\n[`experimental_connect_to_cluster(...)`](../tf/config/experimental_connect_to_cluster): Connects to the given cluster.\n\n[`experimental_connect_to_host(...)`](../tf/config/experimental_connect_to_host): Connects to a single machine to enable remote execution on it.\n\n[`experimental_functions_run_eagerly(...)`](../tf/config/experimental_functions_run_eagerly): Returns the value of the `experimental_run_functions_eagerly` setting. (deprecated)\n\n[`experimental_run_functions_eagerly(...)`](../tf/config/experimental_run_functions_eagerly): Enables / disables eager execution of [`tf.function`](../tf/function)s. (deprecated)\n\n[`functions_run_eagerly(...)`](../tf/config/functions_run_eagerly): Returns the value of the `run_functions_eagerly` setting.\n\n[`get_logical_device_configuration(...)`](../tf/config/get_logical_device_configuration): Get the virtual device configuration for a [`tf.config.PhysicalDevice`](../tf/config/PhysicalDevice).\n\n[`get_soft_device_placement(...)`](../tf/config/get_soft_device_placement): Return status of soft device placement flag.\n\n[`get_visible_devices(...)`](../tf/config/get_visible_devices): Get the list of visible physical devices.\n\n[`list_logical_devices(...)`](../tf/config/list_logical_devices): Return a list of logical devices created by runtime.\n\n[`list_physical_devices(...)`](../tf/config/list_physical_devices): Return a list of physical devices visible to the host runtime.\n\n[`run_functions_eagerly(...)`](../tf/config/run_functions_eagerly): Enables / disables eager execution of [`tf.function`](../tf/function)s.\n\n[`set_logical_device_configuration(...)`](../tf/config/set_logical_device_configuration): Set the logical device configuration for a [`tf.config.PhysicalDevice`](../tf/config/PhysicalDevice).\n\n[`set_soft_device_placement(...)`](../tf/config/set_soft_device_placement): Enable or disable soft device placement.\n\n[`set_visible_devices(...)`](../tf/config/set_visible_devices): Set the list of visible devices."]]