Command line utilities

dynn.command_line.add_dynet_args(parser, new_group=True)

Adds dynet command line arguments to an argparse.ArgumentParser

You can apply this to your argument parser so that it doesn’t throw an error when you add command line arguments for dynet. For a description of the arguments available for dynet, see the official documentation

Parameters:
  • parser (argparse.ArgumentParser) – Your argument parser.
  • new_group (bool, optional) – Add the arguments in a specific argument group (default: True)