MCPcopy Create free account
hub / github.com/pytorch/tutorials / _set_seed

Function _set_seed

advanced_source/pendulum.py:468–470  ·  view source on GitHub ↗
(self, seed: Optional[int])

Source from the content-addressed store, hash-verified

466
467
468def _set_seed(self, seed: Optional[int]):
469 rng = torch.manual_seed(seed)
470 self.rng = rng
471
472
473######################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected