seed#

(s3prl.util.seed)

Fix random seeds

Authors
  • Heng-Jui Chang 2022

fix_random_seeds#

s3prl.util.seed.fix_random_seeds(seed: int = 1337) None[source][source]#

Fixes all random seeds, including cuDNN backends.

Parameters:

seed (int, optional) – Random seed. Defaults to 1337.