'Show Source' for PyTorch docs

Hi, can someone tell me how the ‘Show Source‘ feature on PyTorch docs? Sometimes, it shows me the actual documentation on Github, while other times it just brings me to a bare-bones rst page, as seen here:

torch.cuda.can\_device\_access\_peer

.. currentmodule:: torch.cuda

.. autofunction:: can_device_access_peer

Is there any plan to link things like these to the actual source code on github? I’m willing to help or make sure there is consistency here if so.

If you wanna investigate, I think these links are generated in the linkcode_resolve function of docs/source/conf.py (link).

Can you give a link to a documentation page with a broken source code link? The link in torch.cuda.can_device_access_peer (the example you gave) doesn’t seem broken.