RuntimeError: invalid argument 1: the number of sizes provided must be greater or equal to the number of dimensions in the tensor at /Users/soumith/minicondabuild3/conda-bld/pytorch_1512379211386/work/torch/lib/TH/generic/THTensor.c:299

Getting this error please help

the dimensions of your tensor are not correct.

that was not the issue, this is a bug in pytorch version 0.3 and when I installed version 0.4 the issue got resolved by itself