d_k = Q.shape[-1]