hyrax.models.hsc_autoencoder
============================

.. py:module:: hyrax.models.hsc_autoencoder


Classes
-------

.. autoapisummary::

   hyrax.models.hsc_autoencoder.HSCAutoencoder


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

.. py:class:: HSCAutoencoder(config, data_sample=None)

   Bases: :py:obj:`torch.nn.Module`


   This autoencoder is designed to work with datasets that are prepared with Hyrax's HSC Data Set class.

   Initialize internal Module state, shared by both nn.Module and ScriptModule.


   .. py:attribute:: encoder


   .. py:attribute:: decoder


   .. py:attribute:: config


   .. py:method:: forward(x)


   .. py:method:: train_step(batch)

      This function contains the logic for a single training step. i.e. the
      contents of the inner loop of a ML training process.

      :param batch: A tuple containing the two values the loss function
      :type batch: tuple

      :returns: **Current loss value** -- Dictionary containing the loss value for the current batch.
      :rtype: dict



