Skip to content

Commit

Permalink
fix new argument from fairseq
Browse files Browse the repository at this point in the history
  • Loading branch information
ftshijt committed Nov 23, 2021
1 parent 0d8cd47 commit d789f15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions espnet2/asr/encoder/hubert_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def __init__(
activation_dropout_rate: float = 0.0,
hubert_dict: str = "./dict.txt",
label_rate: int = 100,
checkpoint_activations: bool = false,
sample_rate: int = 16000,
use_amp: bool = False,
**kwargs,
Expand Down Expand Up @@ -296,6 +297,7 @@ def __init__(
"dropout": dropout_rate,
"attention_dropout": attention_dropout_rate,
"label_rate": label_rate,
"checkpoint_activations": checkpoint_activations,
}
cfg_overides = {**cfg_overides, **kwargs}
self.cfg = HubertConfig()
Expand Down

0 comments on commit d789f15

Please sign in to comment.