dataeval.utils.torch.models.Autoencoder ======================================= .. py:class:: dataeval.utils.torch.models.Autoencoder(channels = 3) An autoencoder model with a separate encoder and decoder. :param channels: Number of input channels :type channels: int, default 3 :param Initialize internal Module state: :param shared by both nn.Module and ScriptModule.: .. py:method:: encode(x) Encode the input tensor using the encoder. :param x: Input tensor :type x: torch.Tensor :returns: The encoded representation of the input tensor. :rtype: torch.Tensor .. py:method:: forward(x) Perform a forward pass through the encoder and decoder. :param x: Input tensor :type x: torch.Tensor :returns: The reconstructed output tensor. :rtype: torch.Tensor