in src/exporters/coreml/models.py [0:0]
def outputs(self) -> OrderedDict[str, OutputDescription]:
if self.task == "feature-extraction":
return OrderedDict(
[
(
"last_hidden_state",
OutputDescription(
"last_hidden_state",
"Sequence of hidden-states at the output of the last layer of the model",
)
),
(
"cls_token_value",
OutputDescription(
"cls_token_value",
"Classification token at the output of the last layer of the model",
)
),
]
)
else:
return super().outputs