towhee.trainer.utils.trainer_utils.set_seed

towhee.trainer.utils.trainer_utils.set_seed(seed: int)[source]

Helper function for reproducible behavior to set the seed in random, numpy, torch.

Parameters:

seed (int) – The seed to set.