MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / _put_indices

Method _put_indices

lib/utils/data/dataloader.py:293–300  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 return self
292
293 def _put_indices(self):
294 assert self.batches_outstanding < 2 * self.num_workers
295 indices = next(self.sample_iter, None)
296 if indices is None:
297 return
298 self.index_queue.put((self.send_idx, indices))
299 self.batches_outstanding += 1
300 self.send_idx += 1
301
302 def _process_next_batch(self, batch):
303 self.rcvd_idx += 1

Callers 2

__init__Method · 0.95
_process_next_batchMethod · 0.95

Calls 1

putMethod · 0.80

Tested by

no test coverage detected