.data<float>[1] segfaults when CUDAType

When I print a tensor variable I get:

 0.3403
 0.2788
-0.1594
[ Variable[CUDAType]{3,1} ]

but when I try to access the second element with var.data<float>[1] I get a segmentation fault. When I run it on the CPU it works fine.

Am I correctly accessing this tensor?

Note: I do not need fast access.

I found the answer on StackOverflow:

The Tensor class despreately needs documentation!