mercredi 18 septembre 2019

Does PyTorch have a RandomState-like object for random number generation?

in numpy i can

import numpy as np

rs = np.random.RandomState(seed=0)

and then pass that object around, eg for dependency injection.

Does PyTorch have a similar interface? I can't find anything in the docs, but maybe i'm missing something.




Aucun commentaire:

Enregistrer un commentaire