Adds return type annotation for fork_rng function (#63724)
authorAswin Murali <aswinmurali.co@gmail.com>
Fri, 27 Aug 2021 16:02:22 +0000 (09:02 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 27 Aug 2021 16:03:40 +0000 (09:03 -0700)
commita43e7a51d7b4c89096510473becffc934644403f
treedcd92c9616af72fbf662cbf1e2a762d78cda7959
parentad8eddbd808a97ac518ffd5b51d2c925803a1a3f
Adds return type annotation for fork_rng function (#63724)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/63723

Since it's a generator function the type annotation shall be `Generator`.
![image](https://user-images.githubusercontent.com/47299190/130318830-29ef9529-0daa-463c-90b2-1b11f63ade8a.png)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63724

Reviewed By: iramazanli

Differential Revision: D30543098

Pulled By: heitorschueroff

fbshipit-source-id: ebdd34749defe1e26c899146786a0357ab4b4b9b
torch/random.py