CM2000112 / internals /util /__init__.py
jayparmr's picture
update : inference
35575bb verified
raw
history blame contribute delete
244 Bytes
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)]