File size: 167 Bytes
ad16788
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import random

import numpy as np
import torch


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