parameters: (self)
docstring: Creates a generator to extract data from the queue.
  
          Skip the data if it is `None`.
  
          # Yields
              The next element in the queue, i.e. a tuple
              `(inputs, targets)` or
              `(inputs, targets, sample_weights)`.
docstring_summary: Creates a generator to extract data from the queue.
docstring_tokens: Creates a generator to extract data from the queue .
function: def get(self):
          """Creates a generator to extract data from the queue.
  
          Skip the data if it is `None`.
  
          # Yields
              The next element in the queue, i.e. a tuple
              `(inputs, targets)` or
              `(inputs, targets, sample_weights)`.
          """
          try:
              while self.is_running():
                  try:
                      future = self.queue.get(block=True)
                      inputs = future.get(timeout=30)
                  except mp.TimeoutError:
                      idx = future.idx
                      warnings.warn(
                          'The input {} could not be retrieved.'
                          ' It could be because a worker has died.'.format(idx),
                          UserWarning)
                      inputs = self.sequence[idx]
                  finally:
                      self.queue.task_done()
  
                  if inputs is not None:
                      yield inputs
          except Exception:
              self.stop()
              six.reraise(*sys.exc_info())
function_tokens: def get ( self ) : try : while self . is_running ( ) : try : future = self . queue . get ( block = True ) inputs = future . get ( timeout = 30 ) except mp . TimeoutError : idx = future . idx warnings . warn ( 'The input {} could not be retrieved.' ' It could be because a worker has died.' . format ( idx ) , UserWarning ) inputs = self . sequence [ idx ] finally : self . queue . task_done ( ) if inputs is not None : yield inputs except Exception : self . stop ( ) six . reraise ( * sys . exc_info ( ) )