Server Starter

TensorFlow Server Starter.

gen_server(cluster_spec, job_name: str, task_index: int, cpu_device_num: int)[source]

Start a TensorFlow server.

Parameters
  • cluster_spec (dict) – TensorFlow ClusterSpec dict

  • job_name – TensorFlow job name

  • task_index – TensorFlow task index

  • cpu_device_num – The number of CPU devices

start_server(cluster_spec, job_name: str, task_index: int, cpu_device_num: int)[source]

Start a TensorFlow server.

Parameters
  • cluster_spec (dict) – TensorFlow ClusterSpec dict

  • job_name – TensorFlow job name

  • task_index – TensorFlow task index

  • cpu_device_num – The number of CPU devices