def _get_replica_device_setter(self, worker_device):
    'Creates a replica device setter.'
    ps_tasks = self._num_ps_replicas
    ps_ops = ['Variable', 'VariableV2', 'DecisionTreeEnsembleResourceHandleOp', 'StatsAccumulatorScalarResourceHandleOp', 'StatsAccumulatorTensorResourceHandleOp']
    ps_strategy = _OpRoundRobinStrategy(ps_ops, ps_tasks)
    return device_setter.replica_device_setter(worker_device=worker_device, ps_tasks=ps_tasks, merge_devices=True, ps_ops=ps_ops, ps_strategy=ps_strategy)
Creates a replica device setter.
def _get_replica_device_setter(self, worker_device):
    
    ps_tasks = self._num_ps_replicas
    ps_ops = ['Variable', 'VariableV2', 'DecisionTreeEnsembleResourceHandleOp', 'StatsAccumulatorScalarResourceHandleOp', 'StatsAccumulatorTensorResourceHandleOp']
    ps_strategy = _OpRoundRobinStrategy(ps_ops, ps_tasks)
    return device_setter.replica_device_setter(worker_device=worker_device, ps_tasks=ps_tasks, merge_devices=True, ps_ops=ps_ops, ps_strategy=ps_strategy)