Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
tobiasc
/
conex
like
3
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
a6f6513
conex
/
espnet2
/
torch_utils
/
set_all_random_seed.py
tobiasc
Initial commit
ad16788
over 2 years ago
raw
Copy download link
history
blame
Safe
167 Bytes
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)