def max_positions(self):
    'Maximum output length supported by the decoder.'
    if (self.embed_positions is None):
        return self.max_target_positions
    return min(self.max_target_positions, self.embed_positions.max_positions())
Maximum output length supported by the decoder.
def max_positions(self):
    
    if (self.embed_positions is None):
        return self.max_target_positions
    return min(self.max_target_positions, self.embed_positions.max_positions())