File size: 244 Bytes
7fbdac4
 
35575bb
 
7fbdac4
 
 
 
 
35575bb
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os

import torch

from internals.util.config import get_root_dir


def getcwd():
    return get_root_dir()


def get_generators(seed, num_generators=1):
    return [torch.Generator().manual_seed(seed + i) for i in range(num_generators)]