Sets the seed for generating random numbers.
Usage
torch_manual_seed(seed)
local_torch_manual_seed(seed, .env = parent.frame())
with_torch_manual_seed(code, ..., seed)
Arguments
- seed
integer seed.
- .env
environment that will take the modifications from manual_seed.
- code
expression to run in the context of the seed
- ...
unused currently.