How can I assign pytorch tensor a matrix from numpy?
Create WxW tensor:

x = Variable(torch.FloatTensor(W,W).zero_(), requires_grad=True)


Do some calculations:

x_copy = x0=np.copy(x.data.numpy())
x_upd = handleArray(x_copy)


How can I assign x data from x_upd ?

Ok, the solution was to do:

x.data.from_numpy(x_upd)

