deepmd.backend.tensorflow

Module Contents

Classes

TensorFlowBackend

TensorFlow backend.

class deepmd.backend.tensorflow.TensorFlowBackend[source]

Bases: deepmd.backend.backend.Backend

TensorFlow backend.

property entry_point_hook: Callable[[argparse.Namespace], None][source]

The entry point hook of the backend.

Returns:
Callable[[Namespace], None]

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.tf.utils.neighbor_stat.NeighborStat][source]

The neighbor statistics of the backend.

Returns:
type[NeighborStat]

The neighbor statistics of the backend.

property serialize_hook: Callable[[str], dict][source]

The serialize hook to convert the model file to a dictionary.

Returns:
Callable[[str], dict]

The serialize hook of the backend.

property deserialize_hook: Callable[[str, dict], None][source]

The deserialize hook to convert the dictionary to a model file.

Returns:
Callable[[str, dict], None]

The deserialize hook of the backend.

name = 'TensorFlow'[source]

The formal name of the backend.

features: ClassVar[deepmd.backend.backend.Backend.Feature][source]

The features of the backend.

suffixes: ClassVar[List[str]] = ['.pb'][source]

The suffixes of the backend.

is_available() bool[source]

Check if the backend is available.

Returns:
bool

Whether the backend is available.