towhee.trainer.utils.trainer_utilsΒΆ
Utilities for the Trainer.
Functions
Cast a generator to the same type as obj (list, tuple or namedtuple) |
|
Recursively apply a function on a data structure that is a nested list/tuple/dictionary of a given base type. |
|
Recursively sends the elements in a nested list/tuple/dictionary of tensors to a given device. |
|
Helper function for reproducible behavior to set the seed in |
|
Unwraps a model from potential containers (as used in distributed training). |
Classes
An enumeration. |
|