Sets the seed for generating random numbers.
torch_manual_seed(seed)local_torch_manual_seed(seed, .env = parent.frame())
with_torch_manual_seed(code, ..., seed)
integer seed.
environment that will take the modifications from manual_seed.
expression to run in the context of the seed
unused currently.
local_torch_manual_seed()
: Modifies the torch seed in the environment scope.
with_torch_manual_seed()
: A with context to change the seed during the function execution.