The value of args.feat_pad_index is calculated by property Field.pad_index and depends on the presence of attribute vocab.
However in CMD.call() the attribute gets set to:
self.FEAT.vocab = tokenizer.vocab
Therefore the value of args.feat_pad_index must be updated correspondingly:
args.feat_pad_index = self.FEAT.pad_index
or else the value that is saved in the model will be inconsistent.
The value of args.feat_pad_index is calculated by property Field.pad_index and depends on the presence of attribute vocab. However in CMD.call() the attribute gets set to:
Therefore the value of args.feat_pad_index must be updated correspondingly:
or else the value that is saved in the model will be inconsistent.