def max_positions(self):
        """Maximum output length supported by the decoder."""
        return (
            self.embed_positions.max_positions
            if self.embed_positions is not None
            else float("inf")
        )
Maximum output length supported by the decoder.
understand_icl/fairseq/fairseq/models/fconv.py