Torch.randn_like - generator argument?

Curious, why doesn’t the torch.randn_like() function take a generator or a random seed as an argument?

How should we reproduce results?

https://pytorch.org/docs/stable/generated/torch.randn_like.html

It’s odd, because this function does indeed accept a generator as an argument:

https://pytorch.org/docs/stable/generated/torch.randn.html

Thanks!

It seems this argument wasn’t implemented yet, so would you be interested in adding it?