I've encountered the following question during executing the predict.py with RecoverSAT model:
Traceback (most recent call last):
File "predict.py", line 93, in <module>
main()
File "predict.py", line 83, in main
results = translator.translate(input_data)
File "/code/translator.py", line 39, in translate
batch_pred = self.recover_nat_translate_batch(batch)
File "/code/translator.py", line 124, in recover_nat_translate_batch
position = position.expand(cur_bsz, -1)
RuntimeError: The expanded size of the tensor (63) must match the existing size (64) at non-singleton dimension 0
The command I used:
python3 predict.py \
--model_path $MODEL_DIR/$CKPT.ckp \
--input_file $TEST_DATA_PREFIX.en \
--output_file $MEASURE_DIR/test.en.pred.$CKPT \
--vocab_path $VOCAB_FILE > $LOG_DIR/decode.$STYPE.$CKPT.log 2>&1
I'm not sure what has happened.
I've encountered the following question during executing the
predict.pywith RecoverSAT model:The command I used:
I'm not sure what has happened.