mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
set seed
This commit is contained in:
@@ -407,6 +407,10 @@ def train_retinanet():
|
||||
config["bs"] = bs = getenv("BS", 128)
|
||||
config["num_epochs"] = num_epochs = getenv("EPOCHS", 4)
|
||||
|
||||
if seed:
|
||||
Tensor.manual_seed(seed)
|
||||
np.random.seed(seed=seed)
|
||||
|
||||
# ** initialize wandb **
|
||||
if (WANDB := getenv("WANDB")):
|
||||
import wandb
|
||||
|
||||
Reference in New Issue
Block a user