You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 292 which is outside the valid range of [0, 10). Label values: 0 0 0 0 0 0 0 4 227 292 0 0 0 4 0 0 0 7 0 1 0 32 9 0 0 0 0 0 0 0 0 0
[[Node: towers/gpu_0/loss/ans_loss/SparseSoftmaxCrossEntropyWithLogits_1/SparseSoftmaxCrossEntropyWithLogits = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT32, _device="/job:localhost/replica:0/task:0/cpu:0"](towers/gpu_0/class/Linear_1/out1, towers/gpu_0/loss/ans_loss/Gather_2)]]
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.
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-0120The text was updated successfully, but these errors were encountered: