deepmd.pt.utils.serialization
=============================

.. py:module:: deepmd.pt.utils.serialization


Functions
---------

.. autoapisummary::

   deepmd.pt.utils.serialization.serialize_from_file
   deepmd.pt.utils.serialization.deserialize_to_file


Module Contents
---------------

.. py:function:: serialize_from_file(model_file: str) -> dict

   
   Serialize the model file to a dictionary.


   :Parameters:

       **model_file** : :class:`python:str`
           The model file to be serialized.



   :Returns:

       :class:`python:dict`
           The serialized model data.











   ..
       !! processed by numpydoc !!

.. py:function:: deserialize_to_file(model_file: str, data: dict) -> None

   
   Deserialize the dictionary to a model file.


   :Parameters:

       **model_file** : :class:`python:str`
           The model file to be saved.

       **data** : :class:`python:dict`
           The dictionary to be deserialized.














   ..
       !! processed by numpydoc !!

