tf.distribute.experimental.coordinator.PerWorkerValues
Stay organized with collections
Save and categorize content based on your preferences.
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 values is located on its corresponding worker,
and upon being used as one of the args
or kwargs
of
tf.distribute.experimental.coordinator.ClusterCoordinator.schedule()
, the
value specific to a worker will be passed into the function being executed at
that corresponding worker.
Currently, the only supported path to create an object of
tf.distribute.experimental.coordinator.PerWorkerValues
is through calling
iter
on a ClusterCoordinator.create_per_worker_dataset
-returned
distributed dataset instance. The mechanism to create a custom
tf.distribute.experimental.coordinator.PerWorkerValues
is not yet supported.
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 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.distribute.experimental.coordinator.PerWorkerValues\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/distribute/coordinator/values.py#L152-L182) |\n\nA container that holds a list of values, one value per worker.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tf.distribute.coordinator.PerWorkerValue`](https://www.tensorflow.org/api_docs/python/tf/distribute/experimental/coordinator/PerWorkerValues)\n\n\u003cbr /\u003e\n\n tf.distribute.experimental.coordinator.PerWorkerValues(\n values\n )\n\n[`tf.distribute.experimental.coordinator.PerWorkerValues`](../../../../tf/distribute/experimental/coordinator/PerWorkerValues) contains a collection\nof values, where each of the values is located on its corresponding worker,\nand upon being used as one of the `args` or `kwargs` of\n[`tf.distribute.experimental.coordinator.ClusterCoordinator.schedule()`](../../../../tf/distribute/experimental/coordinator/ClusterCoordinator#schedule), the\nvalue specific to a worker will be passed into the function being executed at\nthat corresponding worker.\n\nCurrently, the only supported path to create an object of\n[`tf.distribute.experimental.coordinator.PerWorkerValues`](../../../../tf/distribute/experimental/coordinator/PerWorkerValues) is through calling\n`iter` on a [`ClusterCoordinator.create_per_worker_dataset`](../../../../tf/distribute/experimental/coordinator/ClusterCoordinator#create_per_worker_dataset)-returned\ndistributed dataset instance. The mechanism to create a custom\n[`tf.distribute.experimental.coordinator.PerWorkerValues`](../../../../tf/distribute/experimental/coordinator/PerWorkerValues) is not yet supported."]]