Fix self assignment (#165816)

This PR removes assignments of the form `var=var`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165816
Approved by: https://github.com/jansel
This commit is contained in:
Yuanyuan Chen
2025-10-18 18:51:49 +00:00
committed by PyTorch MergeBot
parent 032bed95cd
commit 1f43d17ce6
8 changed files with 5 additions and 20 deletions

View File

@ -85,7 +85,7 @@ class RRefAPITest:
):
rref_local_value(rref)
ret = ret = rpc.rpc_sync(dst_worker_name, rref_local_value, (rref,))
ret = rpc.rpc_sync(dst_worker_name, rref_local_value, (rref,))
self.assertEqual(ret, torch.add(torch.ones(2, 2), 1))
@dist_init