A Tensor being a way of viewing a Storage, it is
possible to "set" a Tensor such that it views an existing Storage.
Note that if you want to perform a set on an empty Tensor like
y = torch.DoubleStorage(10) x = torch.Tensor() x:set(y, 1, 10)you might want in that case to use one of the equivalent constructor.
y = torch.DoubleStorage(10) x = torch.Tensor(y, 1, 10)