chemprop.utils.v1_to_v2
=======================

.. py:module:: chemprop.utils.v1_to_v2


Attributes
----------

.. autoapisummary::

   chemprop.utils.v1_to_v2.logger


Functions
---------

.. autoapisummary::

   chemprop.utils.v1_to_v2.max_encoder_index
   chemprop.utils.v1_to_v2.convert_state_dict_v1_to_v2
   chemprop.utils.v1_to_v2.convert_hyper_parameters_v1_to_v2
   chemprop.utils.v1_to_v2.convert_model_dict_v1_to_v2
   chemprop.utils.v1_to_v2.convert_model_file_v1_to_v2


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

.. py:data:: logger

.. py:function:: max_encoder_index(d)

.. py:function:: convert_state_dict_v1_to_v2(model_v1_dict)

   Converts v1 model dictionary to a v2 state dictionary


.. py:function:: convert_hyper_parameters_v1_to_v2(model_v1_dict)

   Converts v1 model dictionary to v2 hyper_parameters dictionary


.. py:function:: convert_model_dict_v1_to_v2(model_v1_dict)

   Converts a v1 model dictionary from a loaded .pt file to a v2 model dictionary


.. py:function:: convert_model_file_v1_to_v2(model_v1_file, model_v2_file)

   Converts a v1 model .pt file to a v2 model .pt file


