I was going to add that .detach()
does the same thing, but I checked the code and realized that I’m not at all sure about the semantics of var2 = var1.detach()
vs var2 = Variable(var1.data)
…
3 Likes
I was going to add that .detach()
does the same thing, but I checked the code and realized that I’m not at all sure about the semantics of var2 = var1.detach()
vs var2 = Variable(var1.data)
…