a-PyTorch-Tutorial-to-Image-Captioning
a-PyTorch-Tutorial-to-Image-Captioning copied to clipboard
fix a bug in getting the value of prev_word_inds
"//" cannot be used directly, because if the value of tensor is negative, it is equivalent to "trunc", not "floor"
The same problem occurs in "caption.py"