deepmd.entrypoints.main

Common entrypoints.

Module Contents

Functions

main(args)

DeePMD-Kit entry point.

deepmd.entrypoints.main.main(args: argparse.Namespace)[source]

DeePMD-Kit entry point.

Parameters:
argsList[str] or argparse.Namespace, optional

list of command line arguments, used to avoid calling from the subprocess, as it is quite slow to import tensorflow; if Namespace is given, it will be used directly

Raises:
RuntimeError

if no command was input