Skip to content

Commit

Permalink
add init for deepspeech workloads
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Oct 2, 2023
1 parent 29c123e commit 0229fd8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@


class LibriSpeechDeepSpeechWorkload(BaseDeepspeechLibrispeechWorkload):

def __init__(self,
tokenizer_vocab_path: Optional[str] = None,
use_specaug: bool = True) -> None:
super().__init__()
self.metrics_bundle = metrics.get_metrics_bundle(tokenizer_vocab_path)
self.use_specaug = use_specaug

def init_model_fn(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@

class LibriSpeechDeepSpeechWorkload(BaseDeepspeechLibrispeechWorkload):

def __init__(self,
tokenizer_vocab_path: Optional[str] = None,
use_specaug: bool = True) -> None:
super().__init__()
self.tokenizer = metrics.load_tokenizer(tokenizer_vocab_path)
self.use_specaug = use_specaug

def init_model_fn(
self,
rng: spec.RandomState,
Expand Down

0 comments on commit 0229fd8

Please sign in to comment.