def hybrid_forward(self, F, x, y):  
x = F.L2Normalization(x, eps=self.eps)<EOL>y = F.L2Normalization(y, eps=self.eps)<EOL>x = F.expand_dims(x, axis=<NUM_LIT:1>)<EOL>y = F.expand_dims(y, axis=<NUM_LIT:2>)<EOL>return F.batch_dot(x, y).reshape((-<NUM_LIT:1>, ))<EOL>
Compute the cosine similarity between two batches of vectors.

        The cosine similarity is the dot product between the L2 normalized
        vectors.

        Parameters
        ----------
        x : Symbol or NDArray
        y : Symbol or NDArray

        Returns
        -------
        similarity : Symbol or NDArray
            The similarity computed by WordEmbeddingSimilarity.similarity_function.