class_docstr: PS StrategyBuilder.
  
  Generates a Strategy that synchronizes every variable
  using Parameter Servers. Each variable is only assigned
  to one Parameter Server.
class_docstr_tok: ["PS","StrategyBuilder",".","Generates","a","Strategy","that","synchronizes","every","variable","using","Parameter","Servers",".","Each","variable","is","only","assigned","to","one","Parameter","Server","."]
code: def __init__(
      self, local_proxy_variable=False, sync=True, staleness=0
  ):
      self._local_proxy_variable = local_proxy_variable
      self._sync = sync
      self._staleness = staleness
      if self._staleness > 0:
          assert (
              self._sync
          ), "If staleness is positive, sync has to be set true."
  
imports: from autodist.strategy.base import Strategy, StrategyBuilder
  from autodist.proto import strategy_pb2
label_desc: Use image node_id 1 to create a new PS object from inherited base classes: StrategyBuilder with example: obj = PS(local_proxy_variable, sync, staleness)