fairseq
fairseq copied to clipboard
data2vec: robustify check for target_model module
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.