Skip to content

Commit

Permalink
minor fix for param. names (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Feb 20, 2024
1 parent e59fa38 commit 027302c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icefall/lm_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get_lm(self, lm_type: str, device, params: AttributeDict) -> torch.nn.Module
"""
if lm_type == "rnn":
model = RnnLmModel(
vocab_size=params.vocab_size,
vocab_size=params.lm_vocab_size,
embedding_dim=params.rnn_lm_embedding_dim,
hidden_dim=params.rnn_lm_hidden_dim,
num_layers=params.rnn_lm_num_layers,
Expand All @@ -183,7 +183,7 @@ def get_lm(self, lm_type: str, device, params: AttributeDict) -> torch.nn.Module

elif lm_type == "transformer":
model = TransformerLM(
vocab_size=params.vocab_size,
vocab_size=params.lm_vocab_size,
d_model=params.transformer_lm_encoder_dim,
embedding_dim=params.transformer_lm_embedding_dim,
dim_feedforward=params.transformer_lm_dim_feedforward,
Expand Down

0 comments on commit 027302c

Please sign in to comment.