(self)
Device to use with the optimizer.

    Returns:
      A value suitable for `tf.device()`.
Device to use with the optimizer.
Device to use with the optimizer .
def optimizer_device(self):
    """Device to use with the optimizer.

    Returns:
      A value suitable for `tf.device()`.
    """
    if self._num_ps_tasks > 0 or self._num_clones > 0:
      return self._worker_device + '/device:CPU:0'
    else:
      return ''
def optimizer_device ( self ) : if self . _num_ps_tasks > 0 or self . _num_clones > 0 : return self . _worker_device + '/device:CPU:0' else : return ''