test_links = {
'Tensor': 'https://pytorch.org/docs/stable/tensors.html',
'Tensor.sqrt': 'https://pytorch.org/docs/stable/tensors.html#torch.Tensor.sqrt',
'torch.zeros_like': 'https://pytorch.org/docs/stable/torch.html#torch.zeros_like',
'nn.Module': 'https://pytorch.org/docs/stable/nn.html#torch.nn.Module',
'nn.Linear': 'https://pytorch.org/docs/stable/nn.html#torch.nn.Linear',
'F.cross_entropy': 'https://pytorch.org/docs/stable/nn.functional.html#torch.nn.functional.cross_entropy'
}
for f,l in test_links.items(): test_eq(pytorch_doc_link(f), l)