fix VGGTransformer
Summary: A recent change in `fairseq.modules.transformer_layer.TransformerDecoderLayer.forward()` return type broke L659. Specifically, the return type is now either a tuple of 2 or a tuple of 3, while L659 supposed only the latter. This diff provides a fix to this.
@@ -656,7 +656,7 @@ class TransformerDecoder(FairseqIncrementalDecoder):
# decoder layers
for layer in self.layers:
if isinstance(layer, TransformerDecoderLayer):
- x, _, _ = layer(
+ x, *_ = layer(
x,
(encoder_out["encoder_out"] if encoder_out is not None else None),
(
