Hi there,
When c = torch.cat([a, b]), I expect c.data will change with a.data, but it doesn’t.
The following codes show the idea.
import torch
from torch.autograd import Variable
a, b = Variable(torch.ones(1)), Variable(torch.ones(1))
c = torch.cat([a, b])
a.data = torch.ones(1)*2
print(c.data)
c.data = [1,1], not [2,1].
I wonder if this is a feature or will it be fixed?
Thanks for your help.