a-PyTorch-Tutorial-to-Image-Captioning icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Image-Captioning copied to clipboard

fix a bug in getting the value of prev_word_inds

Open moon4869 opened this issue 3 years ago • 1 comments

"//" cannot be used directly, because if the value of tensor is negative, it is equivalent to "trunc", not "floor"

moon4869 avatar Jul 28 '22 08:07 moon4869

The same problem occurs in "caption.py"

moon4869 avatar Jul 28 '22 08:07 moon4869