Notes
Package Reference
General utility functions for PyTorch.
torchutils.utils.
set_random_seed
Set random seed for numpy, torch and torch.cuda.
seed (int) – Seed value.
Returns nothing.
None
Example:
import torchutils as tu tu.set_random_seed(2222)