hyrax.verbs.infer
=================

.. py:module:: hyrax.verbs.infer


Attributes
----------

.. autoapisummary::

   hyrax.verbs.infer.logger


Classes
-------

.. autoapisummary::

   hyrax.verbs.infer.Infer


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

.. py:data:: logger

.. py:class:: Infer(config)

   Bases: :py:obj:`hyrax.verbs.verb_registry.Verb`


   Inference verb

   .. py:method:: __init__

   Overall initialization for all verbs that saves the config


   .. py:attribute:: cli_name
      :value: 'infer'



   .. py:attribute:: add_parser_kwargs


   .. py:method:: setup_parser(parser)
      :staticmethod:


      We don't need any parser setup for CLI opts



   .. py:method:: run_cli(args=None)

      CLI stub for Infer verb



   .. py:method:: run()

      Run inference on a model using a dataset

      :param config: The parsed config file as a nested dict
      :type config: dict



   .. py:method:: load_model_weights(config, model)
      :staticmethod:


      Loads the model weights from a file. Raises RuntimeError if this is not possible due to
      config, missing or malformed file

      :param config: Full runtime configuration
      :type config: dict
      :param model: The model class to load weights into
      :type model: nn.Module



