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","."]
docstr: Creates a NodeConfig specifying synchronization with Parameter Servers.
  
  Args:
      var_name (str): The name of the variable.
      reduction_destinations (Iter[str]): The location of the parameter servers.
  
  Returns:
      strategy_pb2.Strategy.Node: the config for the node.
docstr_tok: ["Creates","a","NodeConfig","specifying","synchronization","with","Parameter","Servers",".","Args",":","var_name","(","str",")",":","The","name","of","the","variable",".","reduction_destinations","(","Iter","[","str","]",")",":","The","location","of","the","parameter","servers",".","Returns",":","strategy_pb2.Strategy.Node",":","the","config","for","the","node","."]
code: def _gen_ps_node_config(
      var_name,
      reduction_destination,
      local_proxy_variable,
      sync,
      staleness,
  ):
      """
      Creates a NodeConfig specifying synchronization with Parameter Servers.
  
      Args:
          var_name (str): The name of the variable.
          reduction_destinations (Iter[str]): The location of the parameter servers.
  
      Returns:
          strategy_pb2.Strategy.Node: the config for the node.
      """
      node = strategy_pb2.Strategy.Node()
      node.var_name = var_name
      node.PSSynchronizer.reduction_destination = reduction_destination
      node.PSSynchronizer.local_replication = local_proxy_variable
      node.PSSynchronizer.sync = sync
      node.PSSynchronizer.staleness = staleness
      return node
  
imports: from autodist.strategy.base import Strategy, StrategyBuilder
  from autodist.proto import strategy_pb2
label_desc: Use image node_id 3 for calling the PS obj's underlying member method code with example usage: obj._gen_ps_node_config(var_name, reduction_destination, local_proxy_variable, sync, staleness) and returns: node