deepmd.dpmodel.model.base_model
===============================

.. py:module:: deepmd.dpmodel.model.base_model


Classes
-------

.. autoapisummary::

   deepmd.dpmodel.model.base_model.BaseModel


Functions
---------

.. autoapisummary::

   deepmd.dpmodel.model.base_model.make_base_model


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

.. py:function:: make_base_model() -> type[object]

.. py:class:: BaseModel

   Bases: :py:obj:`make_base_model`\ (\ )


   
   Base class for final exported model that will be directly used for inference.

   The class defines some abstractmethods that will be directly called by the
   inference interface. If the final model class inherbits some of those methods
   from other classes, `BaseModel` should be inherited as the last class to ensure
   the correct method resolution order.

   This class is for the DPModel backend.











   .. seealso::

       
       :obj:`deepmd.dpmodel.model.base_model.BaseBaseModel`
           Backend-independent BaseModel class.
       
       



   ..
       !! processed by numpydoc !!

   .. py:attribute:: model_def_script
      :value: ''


      
      The model definition script.
















      ..
          !! processed by numpydoc !!


   .. py:attribute:: min_nbor_dist
      :value: None


      
      The minimum distance between two atoms. Used for model compression.
      None when skipping neighbor statistics.
















      ..
          !! processed by numpydoc !!


   .. py:method:: get_model_def_script() -> str

      
      Get the model definition script.
















      ..
          !! processed by numpydoc !!


