Configure a net that is invoked between reading batches to see if limit condition is met. Must be implemented by subclass. Args: stop_condition_net: A net invoked to evaluate an early termination condition.
(self, stop_condition_net)
| 388 | raise NotImplementedError("Subclass must implement `setup_limiter`") |
| 389 | |
| 390 | def check_limiter_condition(self, stop_condition_net): |
| 391 | """Configure a net that is invoked between reading batches to see if |
| 392 | limit condition is met. Must be implemented by subclass. |
| 393 | |
| 394 | Args: |
| 395 | stop_condition_net: A net invoked to evaluate an early termination |
| 396 | condition. |
| 397 | """ |
| 398 | raise NotImplementedError("Subclass must implement `check_limiter_condition") |
| 399 | |
| 400 | def data_finished(self): |
| 401 | """ |