mighty.utils.common.set_seed
¶
mighty.utils.common.
set_seed
(
seed
:
int
)
[source]
¶
Sets the global seed for PyTorch, Numpy, and built-in
random
function.
Parameters
:
seed
int
The global seed.
Mighty PyTorch Trainer
Navigation
Getting started
Trainers
Monitors
Loss wrappers
Models
Other
Mean and variance online measures
Data loader with simple API
Inverse normalizations of data transforms
Finding a layer
Working with batches
Miscellaneous
Layer hooks
Convert a model to the train or test mode
Signal processing and statistics
Stubs
Constants
Related Topics
Documentation overview
Other
Previous:
mighty.utils.common.clone_cpu
Next:
mighty.utils.hooks.get_layers_ordered
Quick search