dataeval.utils.torch.models.Encoder =================================== .. py:class:: dataeval.utils.torch.models.Encoder(channels = 3) A simple encoder to be used in an autoencoder model. This is the encoder used by the Autoencoder model. :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:: forward(x) Perform a forward pass through the encoder. :param x: Input tensor :type x: torch.Tensor :returns: The encoded representation of the input tensor. :rtype: torch.Tensor