Skip to content

Commit d82100c

Browse files
committed
Chore(pt): add --model-branch as alias
1 parent 17da9d2 commit d82100c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

deepmd/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,10 @@ def main_parser() -> argparse.ArgumentParser:
330330
)
331331
parser_frz.add_argument(
332332
"--head",
333+
"--model-branch",
333334
default=None,
334335
type=str,
335-
help="(Supported backend: PyTorch) Task head to freeze if in multi-task mode.",
336+
help="(Supported backend: PyTorch) Task head (alias: model branch) to freeze if in multi-task mode.",
336337
)
337338

338339
# * test script ********************************************************************
@@ -409,9 +410,10 @@ def main_parser() -> argparse.ArgumentParser:
409410
)
410411
parser_tst.add_argument(
411412
"--head",
413+
"--model-branch",
412414
default=None,
413415
type=str,
414-
help="(Supported backend: PyTorch) Task head to test if in multi-task mode.",
416+
help="(Supported backend: PyTorch) Task head (alias: model branch) to test if in multi-task mode.",
415417
)
416418

417419
# * compress model *****************************************************************

0 commit comments

Comments
 (0)