How to obtain the values of query and key in the attention module"

How to obtain the values of query and key in the attention module"