LostTech.TensorFlow : API Documentation

Type SimpleClusterResolver

Namespace tensorflow.distribute.cluster_resolver

Parent ClusterResolver

Interfaces ISimpleClusterResolver

Simple implementation of ClusterResolver that accepts a ClusterSpec.

Methods

Properties

Public static methods

SimpleClusterResolver NewDyn(object cluster_spec, ImplicitContainer<T> master, object task_type, object task_id, ImplicitContainer<T> environment, object num_accelerators, object rpc_layer)

Creates a SimpleClusterResolver from a ClusterSpec.

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;

object task_id get; set;

object task_id_dyn get; set;

object task_type get; set;

object task_type_dyn get; set;