Refusing to save non contiguous tensors now. (#17)
* Refusing to save non contiguous tensors now.
Refusing to save non contiguous tensors now.
It causes weird issues.
1/ It is hard to make it play well with lazy-loading since you would
have 2 call sites, 1 needing to refer to some mother tensor (and
potentially a whole graph of them) that might not yet exist.
```python
x = torch.zeros((20, 20))
y = x[:, 0]
torch.save([x, y], filename)
x1, y1 = torch.load(filename)
y1.fill_(1)
```
This exists because some two different tensors can refer to the same
buffer with different striding, and pytorch save can persist them.
This library and format doesn't enable that so we should just
discard them.
2/ There was a bug when saving from something else than `cpu`
because the pointer would point to a GPU address for instance
so every tensor needs to be brought back before saving
(Unless there's a better way).