seed
optimus_dl.core.seed
¶
Utilities for setting random seeds for reproducibility.
set_seed(seed, deterministic=False)
¶
Set random seeds for reproducibility across different libraries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seed
|
int
|
The integer seed to set. |
required |
deterministic
|
bool
|
If True, makes CUDA operations deterministic. Note: This can sometimes come with a performance penalty. |
False
|