// Add *-specific args to parser.
if hasattr(args, "criterion"):
CRITERION_REGISTRY[args.criterion].add_args(parser)
if hasattr(args, "optimizer"):
OPTIMIZER_REGISTRY[args.optimizer].add_args(parser)
if hasattr(args, "lr_scheduler"):
LR_SCHEDULER_REGISTRY[args.lr_scheduler].add_args(parser)
if hasattr(args, "task"):
TASK_REGISTRY[args.task].add_args(parser)