Closed khliu1238 closed 6 years ago
I think the likely cause is that you're running with a different version of PyTorch. Can you confirm that you're using Python2.7 and that your version of PyTorch is 0.1.12_2?
Run:
python -c "import torch; print torch.__version__"
This should output: 0.1.12_2.
If you have a different version of PyTorch, the README has instructions for installing this version.
that's right, I just discovered conda doesn't work with virtualenv, have to use conda virtual environment instead to install pytorch 0.1.12 in a virtual environment. It's working now. Thanks.
hi:
when running
python main.py configs/default-base.txt --task click-tab-2
the following error occurred, without changing any single line of code / data:the root cause seems to be
File "/Users/wge/gtd/ml/torch/seq_batch.py", line 174, in reduce_mean weights = mask / sums.expand(*mask.size()) RuntimeError: The expanded size of the tensor (7) must match the existing size (108) at non-singleton dimension 1. at /Users/soumith/code/builder/wheel/pytorch-src/torch/lib/TH/generic/THTensor.c:309
but I'm not sure what wrong from here.any idea what's wrong?