Thanks for all the help. I just installed from source. I still have the same issue. I will keep looking. Any suggestions are appreciated.
  File "anaconda2/lib/python2.7/site-packages/torch/autograd/variable.py", line 151, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables)
  File "anaconda2/lib/python2.7/site-packages/torch/autograd/__init__.py", line 98, in backward
    variables, grad_variables, retain_graph)
  File "anaconda2/lib/python2.7/site-packages/torch/autograd/function.py", line 90, in apply
    return self._forward_cls.backward(self, *args)
  File "anaconda2/lib/python2.7/site-packages/torch/autograd/function.py", line 183, in wrapper
    outputs = fn(ctx, *tensor_args)
  File "anaconda2/lib/python2.7/site-packages/torch/autograd/_functions/tensor.py", line 276, in backward
    grad_tensor.index_add_(ctx.dim, index, grad_output)
RuntimeError: tensor must have one dimension at pytorch/torch/lib/TH/generic/THTensor.c:814```

Version: 0.1.12+4eb448a ; installed for CPU, i.e., no GPU support.