def get_parser():
    parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument('--world-size', type=int, default=1, help='Number of GPUs for DDP training.')
    parser.add_argument('--master-port', type=int, default=12354, help='Master port to use for DDP training.')
    parser.add_argument('--tensorboard', type=str2bool, default=True, help='Should various information be logged in tensorboard.')
    parser.add_argument('--num-epochs', type=int, default=20, help='Number of epochs to train.')
    parser.add_argument('--start-epoch', type=int, default=0, help='Resume training from from this epoch.\n        If it is positive, it will load checkpoint from\n        tdnn_lstm_ctc/exp/epoch-{start_epoch-1}.pt\n        ')
    return parser
def get_parser():
    parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument('--world-size', type=int, default=1, help='Number of GPUs for DDP training.')
    parser.add_argument('--master-port', type=int, default=12354, help='Master port to use for DDP training.')
    parser.add_argument('--tensorboard', type=str2bool, default=True, help='Should various information be logged in tensorboard.')
    parser.add_argument('--num-epochs', type=int, default=20, help='Number of epochs to train.')
    parser.add_argument('--start-epoch', type=int, default=0, help='Resume training from from this epoch.\n        If it is positive, it will load checkpoint from\n        tdnn_lstm_ctc/exp/epoch-{start_epoch-1}.pt\n        ')
    return parser