src/transformers/models/wav2vec2/modeling_tf_wav2vec2.py/TFWav2Vec2ForCTC/serving_output
class TFWav2Vec2ForCTC:    def serving_output(self, output: TFCausalLMOutput) -> TFCausalLMOutput:
        hs = tf.convert_to_tensor(output.hidden_states) if self.config.output_hidden_states else None
        attns = tf.convert_to_tensor(output.attentions) if self.config.output_attentions else None
        return TFCausalLMOutput(logits=output.logits, hidden_states=hs, attentions=attns)