An analysis of attention mechanisms and its variance in transformer | Synapse