MCPcopy Create free account
hub / github.com/NVIDIA/DALI / _feed_input

Method _feed_input

dali/python/nvidia/dali/_debug_mode.py:227–234  ·  view source on GitHub ↗
(self, data, kwargs)

Source from the content-addressed store, hash-verified

225 return callback_out
226
227 def _feed_input(self, data, kwargs):
228 if self._callback is not None:
229 raise RuntimeError(
230 f"Cannot use `feed_input` on the external source '{self._name}' with a `source`"
231 f" argument specified."
232 )
233
234 self._feed_inputs.put((data, kwargs))
235
236 def _fetch(self, epoch_idx):
237 """Fetches data from callback or provided with feed_input."""

Callers 2

feed_inputMethod · 0.45
_external_sourceMethod · 0.45

Calls 1

putMethod · 0.45

Tested by

no test coverage detected