MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / is_ps

Method is_ps

tensorlayer/distributed.py:310–312  ·  view source on GitHub ↗

Returns true if this server is a parameter server

(self)

Source from the content-addressed store, hash-verified

308 self._master = self.type == 'worker' and self._index == 0
309
310 def is_ps(self):
311 """Returns true if this server is a parameter server"""
312 return self.type == 'ps'
313
314 def is_worker(self):
315 """Returns true if this server is a worker server"""

Callers 1

create_serverMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected