tf.contrib.framework.VariableDeviceChooser

View source on GitHub

Device chooser for variables.

When using a parameter server it will assign them in a round-robin fashion. When not using a parameter server it allows GPU or CPU placement.

num_tasks number of tasks.
job_name String, a name for the parameter server job.
device_type Optional device type string (e.g. "CPU" or "GPU")
device_index int. Optional device index. If left unspecified, device represents 'any' device_index.

Methods

__call__

View source

Call self as a function.