Hi
I’d like to know: what is the difference between “Tensor A = B” and “Tensor A.set_data(B)” in LibTorch?
I found that when I try to change the value of a model’s(networks’) parameter tensor, I could only use A.set_data(B) rather than A = B.
And using A.set_data(B) will lead to an error when execute the .backward() method.