This settings works for me quite well:

Screenshot 2019-09-06 at 23.35.53.png2556×104 16.7 KB

troch.nn.functional -> https://pytorch.org/docs/stable/nn.functional.html#{element.qname} 23
torch -> https://pytorch.org/docs/stable/{module.basename}.html#{element.qname} 20