deepmd.tf.utils.serialization

Module Contents

Functions

serialize_from_file(→ dict)

Serialize the model file to a dictionary.

deserialize_to_file(→ None)

Deserialize the dictionary to a model file.

deepmd.tf.utils.serialization.serialize_from_file(model_file: str) dict[source]

Serialize the model file to a dictionary.

Parameters:
model_filestr

The model file to be serialized.

Returns:
dict

The serialized model data.

deepmd.tf.utils.serialization.deserialize_to_file(model_file: str, data: dict) None[source]

Deserialize the dictionary to a model file.

Parameters:
model_filestr

The model file to be saved.

datadict

The dictionary to be deserialized.