i.e. flipped order of states and valid_length positions. Both implementations also call super with positional arguments.
The bug gets compensated by the fact that Seq2SeqEncoder simply passes through parameters without transformation and parameters flip back to the original positions.
Description
Seq2SeqEncoder
has next signature for the call:but both child implementations,
TransformerEncoder
andBERTEncoder
have signaturesi.e. flipped order of
states
andvalid_length
positions. Both implementations also callsuper
with positional arguments. The bug gets compensated by the fact thatSeq2SeqEncoder
simply passes through parameters without transformation and parameters flip back to the original positions.