Since a.data = b.detach() is not recommended( is it right?), and a.fill_(v) can only cope with 0-dim value, so what’s the recommended value to update one tensor value?
My typical case is to write gradients into tensor.grad after using autograd.grad().