guided_summarization
guided_summarization copied to clipboard
repeated warning during test
Hello,
While testing the model and running z_tes.sh, I got this repeated error messages:
guided_summarization/bart/fairseq/sequence_generator.py:1146: UserWarning: An output with one or more elements was resized since it had shape [7], which does not match the required output shape [9].This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (Triggered internally at /pytorch/aten/src/ATen/native/Resize.cpp:19.) out=eos_bbsz_idx, guided_summarization/bart/fairseq/sequence_generator.py:1154: UserWarning: An output with one or more elements was resized since it had shape [7], which does not match the required output shape [9].This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (Triggered internally at /pytorch/aten/src/ATen/native/Resize.cpp:19.) out=eos_scores,
Does this warning affect the result of output? Also, I am wondering if there will be any clue of this to resolve this warning.
Thanks.
Yes, I encountered the same problem, but I don't know how to eliminate these warnings.