It is a simple transformer in tensorflow 2.2, referred to offical guide in https://tensorflow.google.cn/tutorials/text/transformer.