fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

data2vec: robustify check for target_model module

Open stefan-it opened this issue 1 year ago • 0 comments

Hi,

this PR adds an check if the target_model module really exists in the encoder of a data2vec model.

With newer pretrained data2vec models, this check is really important because it led to an error as reported in #4534.

stefan-it avatar Jul 06 '22 10:07 stefan-it