Skip to content

repeated warning during test #56

@nargesdel

Description

@nargesdel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions