otx.backend.native.callbacks#
Module for OTX custom callbacks.
Classes
|
This callback makes trainer run specified iteration and exit. |
- class otx.backend.native.callbacks.BatchSizeFinder(steps_per_trial: int = 3)[source]#
Bases:
Callback
This callback makes trainer run specified iteration and exit.
- Parameters:
steps_per_trial – number of steps to run with a given batch size. Ideally 1 should be enough to test if an OOM error occurs, however in practice a few are needed.