parameters: (self, ps_tasks, ps_device, worker_device, merge_devices, ps_ops)
docstring: Create a new `_ReplicaDeviceChooser`.
  
      Args:
        ps_tasks: Number of tasks in the `ps` job.
        ps_device: String.  Name of the `ps` job.
        worker_device: String.  Name of the `worker` job.
        merge_devices: Boolean. Set to True to allow merging of device specs.
        ps_ops: List of `Operations` that must be placed on `ps` jobs.
          If None, set it to ["Variable"].
docstring_summary: Create a new `_ReplicaDeviceChooser`.
docstring_tokens: Create a new _ReplicaDeviceChooser .
function: def __init__(self, ps_tasks, ps_device, worker_device, merge_devices, ps_ops):
      """Create a new `_ReplicaDeviceChooser`.
  
      Args:
        ps_tasks: Number of tasks in the `ps` job.
        ps_device: String.  Name of the `ps` job.
        worker_device: String.  Name of the `worker` job.
        merge_devices: Boolean. Set to True to allow merging of device specs.
        ps_ops: List of `Operations` that must be placed on `ps` jobs.
          If None, set it to ["Variable"].
      """
      if ps_ops is None:
        # TODO(sherrym): Variables in the LOCAL_VARIABLES collection should not be
        # placed in the parameter server.
        ps_ops = ["Variable"]
      self._ps_tasks = ps_tasks
      self._ps_device = ps_device
      self._worker_device = worker_device
      self._merge_devices = merge_devices
      self._next_task_num = 0
      self._ps_ops = ps_ops
function_tokens: def __init__ ( self , ps_tasks , ps_device , worker_device , merge_devices , ps_ops ) : if ps_ops is None : # TODO(sherrym): Variables in the LOCAL_VARIABLES collection should not be # placed in the parameter server. ps_ops = [ "Variable" ] self . _ps_tasks = ps_tasks self . _ps_device = ps_device self . _worker_device = worker_device self . _merge_devices = merge_devices self . _next_task_num = 0 self . _ps_ops = ps_ops