(self, other_size, other_context, op_name, input_idx)
| 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: |
no test coverage detected