I want to make the following division:tensor_vec / tensor_vec.sum() but when I do this I get:
RuntimeError: inconsistent tensor size at /opt/conda/conda-bld/pytorch_1501972792122/work/pytorch-0.1.12/torch/lib/TH/generic/THTensorMath.c:87