LostTech.TensorFlow : API Documentation

Type TFConfigClusterResolver

Namespace tensorflow.distribute.cluster_resolver

Parent ClusterResolver

Interfaces ITFConfigClusterResolver

Implementation of a ClusterResolver which reads the TF_CONFIG EnvVar.

This is an implementation of cluster resolvers when using TF_CONFIG to set information about the cluster. The cluster spec returned will be initialized from the TF_CONFIG environment variable.

Properties

Public properties

string environment get;

Returns the current environment which TensorFlow is running in.

There are two possible return values, "google" (when TensorFlow is running in a Google-internal environment) or an empty string (when TensorFlow is running elsewhere).

If you are implementing a ClusterResolver that works in both the Google environment and the open-source world (for instance, a TPU ClusterResolver or similar), you will have to return the appropriate string depending on the environment, which you will have to detect.

Otherwise, if you are implementing a ClusterResolver that will only work in open-source TensorFlow, you do not need to implement this property.

object environment_dyn get;

Returns the current environment which TensorFlow is running in.

There are two possible return values, "google" (when TensorFlow is running in a Google-internal environment) or an empty string (when TensorFlow is running elsewhere).

If you are implementing a ClusterResolver that works in both the Google environment and the open-source world (for instance, a TPU ClusterResolver or similar), you will have to return the appropriate string depending on the environment, which you will have to detect.

Otherwise, if you are implementing a ClusterResolver that will only work in open-source TensorFlow, you do not need to implement this property.

object PythonObject get;

object rpc_layer get; set;

object rpc_layer_dyn get; set;

Nullable<int> task_id get; set;

object task_id_dyn get; set;

string task_type get; set;

object task_type_dyn get; set;