December 2018
Intermediate to advanced
764 pages
18h 18m
English
In order to create a cluster, first, define a cluster specification. The cluster specification generally consists of two jobs: ps to create parameter server tasks and worker to create worker tasks. The worker and ps jobs contain the list of physical nodes where their respective tasks are running. As an example:
clusterSpec = tf.train.ClusterSpec({ 'ps': [ 'master0.neurasights.com:2222', # /job:ps/task:0 'master1.neurasights.com:2222' # /job:ps/task:1 ] 'worker': [ 'worker0.neurasights.com:2222', # /job:worker/task:0 'worker1.neurasights.com:2222', # /job:worker/task:1 'worker0.neurasights.com:2223', # /job:worker/task:2 'worker1.neurasights.com:2223' # /job:worker/task:3 ] })
This specification creates two jobs, ...
Read now
Unlock full access