Torch.reciprocal(x) vs 1.0/x

Is there any difference between the two? Does 1.0/x call torch.reciprocal internally?

From this line in the code, it can be seen that 1.0/x will call torch.reciprocal internally.

This : pytorch/_tensor.py at master · pytorch/pytorch · GitHub? Do you mean

1 Like

Hi pascal_notsawo, Yes, that link is correct.