MCPcopy Create free account
hub / github.com/pytorch/pytorch / _enqueue_batch_direct

Method _enqueue_batch_direct

caffe2/python/data_workers.py:251–257  ·  view source on GitHub ↗
(self, data_input_coordinator)

Source from the content-addressed store, hash-verified

249 continue
250
251 def _enqueue_batch_direct(self, data_input_coordinator):
252 data = self._get(data_input_coordinator)
253 if data is None:
254 return
255 if data_input_coordinator.is_active():
256 for b, q, c in zip(self._input_blob_names, self._queues, data):
257 self._enqueue(b, q, c)
258
259 def _enqueue_batch(self, data_input_coordinator):
260 '''

Callers 1

_enqueue_batchMethod · 0.95

Calls 3

_getMethod · 0.95
_enqueueMethod · 0.95
is_activeMethod · 0.45

Tested by

no test coverage detected