Have a look at the CONTRIBUTING 4 document for some guide lines.

If you are interested in contributing to PyTorch, your contributions will fall into two categories:

You want to propose a new feature and implement it.
    Post about your intended feature, and we shall discuss the design and implementation. Once we agree that the plan looks good, go ahead and implement it.
You want to implement a feature or bug-fix for an outstanding issue.
    Search for your issue here: https://github.com/pytorch/pytorch/issues
    Pick an issue and comment on the task that you want to work on this feature.
    If you need more context on a particular issue, please ask and we shall provide.


Once you finish implementing a feature or bug-fix, please send a Pull Request to https://github.com/pytorch/pytorch 2