torch.randn signature is missing generator #97966
Labels
enhancement
Not as big of a feature, but technically not a bug. Should be easy to fix
module: docs
Related to our documentation, both in docs/ and docblocks
module: python frontend
For issues relating to PyTorch's Python frontend
module: random
Related to random number generation in PyTorch (rng generator)
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃摎 The doc issue
torch.randn lacks
generator
argument in the signaturetorch.randn(*size, *, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False, pin_memory=False)
.Suggest a potential alternative/fix
Add
generator
, like in torch.rand:torch.randn(*size, *, generator=None, out=None, dtype=None, layout=torch.strided, device=None, requires_grad=False, pin_memory=False)
cc @svekars @carljparker @pbelevich @albanD
The text was updated successfully, but these errors were encountered: