def forward(self, x):
        """Forward method.

        Args:
            x: input for the encoder

        Returns:
            (embeddings, projections)
        """
        emb = self.encoder(x)
        projection = self.model(emb)
        return emb, projection
Forward method.

        Args:
            x: input for the encoder

        Returns:
            (embeddings, projections)
        
examples/self_supervised/src/common.py