deepmd.tf.entrypoints.main
DeePMD-Kit entry point module.
Module Contents
Functions
| Convert string to python logging level. |
| DeePMD-Kit commandline options argument parser. |
| Parse arguments and convert argument strings to objects. |
| DeePMD-Kit entry point. |
- deepmd.tf.entrypoints.main.get_ll(log_level: str) int [source]
Convert string to python logging level.
- deepmd.tf.entrypoints.main.main_parser() argparse.ArgumentParser [source]
DeePMD-Kit commandline options argument parser.
- Returns:
argparse.ArgumentParser
main parser of DeePMD-kit
- deepmd.tf.entrypoints.main.parse_args(args: List[str] | None = None) argparse.Namespace [source]
Parse arguments and convert argument strings to objects.
- Parameters:
- Returns:
argparse.Namespace
the populated namespace
- deepmd.tf.entrypoints.main.main(args: List[str] | argparse.Namespace | None = None)[source]
DeePMD-Kit entry point.
- Parameters:
- args
List
[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
- args
- Raises:
RuntimeError
if no command was input