mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
eefb5708ec
commit
6f3d89dd0f
Binary file not shown.
Binary file not shown.
@ -138,6 +138,15 @@ def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
|
||||
model.encoder.num_updates = int(batch_count)
|
||||
|
||||
|
||||
def add_adapter_arguments(cls, parser: argparse.ArgumentParser):
|
||||
parser.add_argument(
|
||||
"--add-adapter",
|
||||
type=str2bool,
|
||||
default=False,
|
||||
help="add adapter to rep model's encoder"
|
||||
)
|
||||
|
||||
|
||||
def add_rep_arguments(parser: argparse.ArgumentParser):
|
||||
parser.add_argument(
|
||||
"--wandb",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user