tf.contrib.learn.RunConfig.get_task_id()
Returns task index from TF_CONFIG
environmental variable.
If you have a ClusterConfig instance, you can just access its task_id property instead of calling this function and re-parsing the environmental variable.
TF_CONFIG['task']['index']
. Defaults to 0.
Defined in tensorflow/contrib/learn/python/learn/estimators/run_config.py
.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/learn/RunConfig/get_task_id