in src/exporters/coreml/models.py [0:0]
def inputs(self) -> OrderedDict[str, InputDescription]:
if self.task == "multiple-choice":
return OrderedDict(
[
(
"input_ids",
InputDescription(
"input_ids",
"Indices of input sequence tokens in the vocabulary",
sequence_length=self.input_ids_sequence_length,
)
),
(
"attention_mask",
InputDescription(
"attention_mask",
"Mask to avoid performing attention on padding token indices (1 = not masked, 0 = masked)",
)
),
]
)
else:
return super().inputs