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

Method check_input

dali/python/nvidia/dali/_debug_mode.py:328–335  ·  view source on GitHub ↗
(self, other_size, other_context, op_name, input_idx)

Source from the content-addressed store, hash-verified

326 return False
327
328 def check_input(self, other_size, other_context, op_name, input_idx):
329 if not self.set_if_empty(other_size, other_context) and self.size != other_size:
330 raise RuntimeError(
331 f"Batch size must be uniform across an iteration. "
332 f"Input {input_idx} for operator '{op_name}' has batch "
333 f"size = {other_size}. Expected batch size = {self.size}"
334 f"from:\n{self._source_context}"
335 )
336
337 def check_external_source(self, other_size, other_context, output_idx=-1):
338 if not self.set_if_empty(other_size, other_context) and self.size != other_size:

Callers 1

_check_batch_sizeMethod · 0.80

Calls 1

set_if_emptyMethod · 0.95

Tested by

no test coverage detected