    def max_positions(self):
        """Return the max sentence length allowed by the task."""
        return (self.cfg.max_source_positions, self.cfg.max_target_positions)
Return the max sentence length allowed by the task.
fairseq/tasks/translation.py