def __init__(self, ps_ops, num_tasks):
    'Create a new `_RoundRobinStrategy`.\n\n    Args:\n      ps_ops: List of Op types to place on PS.\n      num_tasks: Number of ps tasks to cycle among.\n    '
    next_task = 0
    self._next_task_per_op = {}
    for op in ps_ops:
        self._next_task_per_op[op] = next_task
        next_task = (((next_task + 1) % num_tasks) if num_tasks else 0)
    self._num_tasks = num_tasks
Create a new `_RoundRobinStrategy`.

Args:
  ps_ops: List of Op types to place on PS.
  num_tasks: Number of ps tasks to cycle among.
def __init__(self, ps_ops, num_tasks):
    'Create a new `_RoundRobinStrategy`.\n\n    Args:\n      ps_ops: List of Op types to place on PS.\n      num_tasks: Number of ps tasks to cycle among.\n    '
    next_task = 0
    self._next_task_per_op = {}
    for op in ps_ops:
        self._next_task_per_op[op] = next_task
        next_task = (((next_task + 1) % num_tasks) if num_tasks else 0)
    self._num_tasks = num_tasks