(self, data)
return data_np
Runs data in session to get data_np.
Runs data in session to get data_np.
Runs data in session to get data_np .
def _run_data(self, data):
    """Runs data in session to get data_np."""
    if data is None:
      return None
    data_np = []
    count_examples = 0
    with tf.MonitoredTrainingSession() as sess:
      while count_examples < self._num_examples:
        out = sess.run(data)
        data_np.append(out)
        count_examples += out.shape[0]
    data_np = np.concatenate(data_np, axis=0)
    return data_np
def _run_data ( self , data ) : if data is None : return None data_np = [ ] count_examples = 0 with tf . MonitoredTrainingSession ( ) as sess : while count_examples < self . _num_examples : out = sess . run ( data ) data_np . append ( out ) count_examples += out . shape [ 0 ] data_np = np . concatenate ( data_np , axis = 0 ) return data_np