src/transformers/models/regnet/modeling_tf_regnet.py/TFRegNetForImageClassification/serving_output
class TFRegNetForImageClassification:    def serving_output(self, output: TFSequenceClassifierOutput) -> TFSequenceClassifierOutput:
        # hidden_states 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)