Execute a post-processing function on input data. Args: fn (function): The function to run.
(self, fn)
| 550 | self.data_iterator = iterator |
| 551 | |
| 552 | def set_batch_fn(self, fn): |
| 553 | """Execute a post-processing function on input data. |
| 554 | |
| 555 | Args: |
| 556 | fn (function): The function to run. |
| 557 | """ |
| 558 | self.batch_fn = fn |
| 559 | |
| 560 | def is_gradient_accumulation_boundary(self): |
| 561 | """True if the engine is executing a gradient reduction or optimizer step instruction. |
nothing calls this directly
no outgoing calls
no test coverage detected