src/transformers/models/funnel/modeling_tf_funnel.py/TFFunnelForSequenceClassification/serving_output
class TFFunnelForSequenceClassification:    def serving_output(self, output: TFSequenceClassifierOutput) -> TFSequenceClassifierOutput:
        # hidden_states and attentions not converted to Tensor with tf.convert_to_tensor as they are all of
        # different dimensions
        return TFSequenceClassifierOutput(
            logits=output.logits, hidden_states=output.hidden_states, attentions=output.attentions
        )