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

Method set_if_empty

dali/python/nvidia/dali/_debug_mode.py:322–326  ·  view source on GitHub ↗
(self, size, context)

Source from the content-addressed store, hash-verified

320 self._non_uniform_batch = True
321
322 def set_if_empty(self, size, context):
323 if self.size == -1:
324 self.__init__(size, context, self._non_uniform_batch)
325 return True
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:

Callers 3

check_inputMethod · 0.95
check_external_sourceMethod · 0.95
runMethod · 0.80

Calls 1

__init__Method · 0.95

Tested by

no test coverage detected