Actually it works fine in my server:
In [1]: import torch as t

In [2]: t.__version__
Out[2]: '0.2.0_3'

In [3]: x = t.randn(4, 7)

In [4]: x = t.autograd.Variable(x)

In [5]: x = x / x.norm (dim = -1) [:, None]

In [6]: x
Out[6]: 
Variable containing:
-0.2147  0.1313 -0.1385  0.0362  0.0239 -0.7362 -0.6112
 0.3956  0.0211  0.7707  0.3180  0.1106 -0.2142 -0.2998
-0.0607  0.1202 -0.6570  0.4154 -0.6012  0.0698  0.1061
-0.3823 -0.1427 -0.3490  0.0242 -0.2743  0.1059 -0.7903
[torch.FloatTensor of size 4x7]