keras-self-attention-layer icon indicating copy to clipboard operation
keras-self-attention-layer copied to clipboard

a simple implementation of self attention layer that outputs flattened sentence embedding matrix, with the Frobenius norm penalty