Open jatinganhotra opened 5 years ago
Hi, It seems the issue is due to tensorflow incompatibility; I remember that 0.12 had issues. Could you try using 0.11? I cannot promise much about upgrading the code (for recent version compatibility) at this point :(
I get the following error when training the model for bAbI dialog task 5. The command line args used are:
python dialog/main.py --load=False --task 5 --num_epochs 2 --data_dir "data/dialog-babi-tasks" --val_period 1 --save_period 1 --train=True --draft=True
The exact error is:
After going through the code, the answers placeholder is broken into 8 pieces, where each piece refers to a different part of answer here - https://github.com/uwnlp/qrn/blob/master/prepro-dialog.py#L232
So, we get logits for each part here separately as follows:
where the 2nd dimension refers to
num_classes
for that piece of the answer if/when applicable. The 2nd dimension matches the size of dict for various positions in the answers<class 'list'>: [15, 10, 10, 4, 3, 674, 645, 2]
, when pre-processing the dataset.But, when I run the code, it throws the error mentioned above.
I'm using
tensorflow 0.12.1
as0.11
is deprecated now and there are no significant changes between the 2 releases as per - https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md#release-0120