Source code for espnet2.torch_utils.set_all_random_seed

import random

import numpy as np
import torch


[docs]def set_all_random_seed(seed: int): random.seed(seed) np.random.seed(seed) torch.random.manual_seed(seed)