cerebras.modelzoo.common.utils.run.cli_parser.patch_to_collect_specified_args#
- cerebras.modelzoo.common.utils.run.cli_parser.patch_to_collect_specified_args(parser)[source]#
Patch all actions in the parser to record specified CLI arguments.
argparse doesn’t provide a mechanism to know which CLI args were specified on cmdline and which come from default values. This method patches the parser actions to record what was specified in CLI and adds it to args_seen that is returned from this method.