Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Dec 13, 2021
1 parent 3b3b535 commit 9e8891a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/audio/speech_recognition/output_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class SpeechRecognitionBackboneState(ProcessState):


class SpeechRecognitionOutputTransform(OutputTransform):
@requires("audio")
def __init__(self):
super().__init__()

Expand All @@ -54,6 +53,7 @@ def tokenizer(self):
self._backbone = self.backbone
return self._tokenizer

@requires("audio")
def per_batch_transform(self, batch: Any) -> Any:
# converts logits into greedy transcription
pred_ids = torch.argmax(batch.logits, dim=-1)
Expand Down

0 comments on commit 9e8891a

Please sign in to comment.