flipping a tensor (link to workaround)

This commit is contained in:
Mike Clark
2018-03-19 15:42:45 +08:00
committed by GitHub
parent 3dd9e880cc
commit 854585de57
+1
View File
@@ -84,6 +84,7 @@
| `x[indices]` | `x[torch.LongTensor(indices)]` |
| `np.take(x, indices)` | `x[torch.LongTensor(indices)]` |
| `x[x != 0]` | `x[x != 0]` |
| `x[::-1]` | [workaround exists](https://github.com/pytorch/pytorch/issues/229) |
### Shape manipulation