Module: tf.compat.v1.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.
experimental_run_functions_eagerly(...)
: Enables / disables eager execution of tf.function
s.
get_logical_device_configuration(...)
: Get the virtual device configuration for a tf.config.PhysicalDevice
.
get_soft_device_placement(...)
: Get if soft device placement is enabled.
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.
set_logical_device_configuration(...)
: Set the logical device configuration for a tf.config.PhysicalDevice
.
set_soft_device_placement(...)
: Set if soft device placement is enabled.
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.
Last updated 2020-10-01 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 2020-10-01 UTC."],[],[],null,["# Module: tf.compat.v1.config\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/compat/v1/config) |\n\nPublic API for tf.config namespace.\n\nModules\n-------\n\n[`experimental`](../../../tf/compat/v1/config/experimental) module: Public API for tf.config.experimental namespace.\n\n[`optimizer`](../../../tf/compat/v1/config/optimizer) module: Public API for tf.config.optimizer namespace.\n\n[`threading`](../../../tf/compat/v1/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.\n\n[`experimental_run_functions_eagerly(...)`](../../../tf/config/experimental_run_functions_eagerly): Enables / disables eager execution of [`tf.function`](../../../tf/function)s.\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): Get if soft device placement is enabled.\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[`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): Set if soft device placement is enabled.\n\n[`set_visible_devices(...)`](../../../tf/config/set_visible_devices): Set the list of visible devices."]]