Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
crrrr30
/
cs-mixer
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
fcf1013
cs-mixer
/
timm
/
utils
/
random.py
crrrr30
Upload folder using huggingface_hub
da716ed
over 1 year ago
raw
Copy download link
history
blame
Safe
178 Bytes
import
random
import
numpy
as
np
import
torch
def
random_seed
(
seed=
42
, rank=
0
):
torch.manual_seed(seed + rank)
np.random.seed(seed + rank)
random.seed(seed + rank)