in src/exporters/coreml/config.py [0:0]
def input_ids_sequence_length(self) -> Union[Tuple, int]:
"""
Sequence lengths supported for the `input_ids`.
- When returning a tuple, flexible shapes will be used. The tuple must contain two items,
representing the minimum and maximum possible sequence lengths.
- When returning an `int`, a fixed sequence length will be used.
"""
return (1, self.max_sequence_length) if self.use_flexible_shapes else self.max_sequence_length