deepmd.backend.pytorch#
Classes#
PyTorch backend. |
Module Contents#
- class deepmd.backend.pytorch.PyTorchBackend[source]#
Bases:
deepmd.backend.backend.BackendPyTorch backend.
- features: ClassVar[deepmd.backend.backend.Backend.Feature][source]#
The features of the backend.
- is_available() bool[source]#
Check if the backend is available.
- Returns:
- bool
Whether the backend is available.
- property entry_point_hook: collections.abc.Callable[[argparse.Namespace], None][source]#
The entry point hook of the backend.
- property deep_eval: type[deepmd.infer.deep_eval.DeepEvalBackend][source]#
The Deep Eval backend of the backend.
- Returns:
type[DeepEvalBackend]The Deep Eval backend of the backend.
- property neighbor_stat: type[deepmd.pt.utils.neighbor_stat.NeighborStat][source]#
The neighbor statistics of the backend.
- Returns:
type[NeighborStat]The neighbor statistics of the backend.
- property serialize_hook: collections.abc.Callable[[str], dict][source]#
The serialize hook to convert the model file to a dictionary.