Difference between torch.add(A+B) and A+B?

Hi, I want to know that, is there any difference between torch.add(A+B) and A+B, where A and B are tensor, or in some cases there is some difference between torch.add(A+B) and A+B.

Firstly, it is not torch.add(A+B). It should be torch.add(A,B). As far as I know there is no difference between them. You said in some cases there are difference. can you state those cases, so that we can check.

Thank you for your reply. I am sorry, “in some cases there is some difference between torch.add(A+B) and A+B” this sentence should be a question, not assertive sentence.

There is no difference between them.
check out -

import torch
A = torch.randint(0,10,(1,5))
B = torch.randint(0,10,(1,5))
print(torch.add(A,B))
print(A+B)