TransformerEncoderLayer
class torch.nn.TransformerEncoderLayer(d_model, nhead, dim_feedforward=2048, dropout=0.1, activation=, layer_norm_eps=1e-05, batch_first=False, norm_first=False, device=None, dtype=None)
TransformerEncoderLayer is made up of self-attn and feedforward
   network. This standard encoder layer is based on the paper
   "Attention Is All You Need". Ashish Vaswani, Noam Shazeer, Niki
   Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser,
   and Illia Polosukhin. 2017. Attention is all you need. In Advances
   in Neural Information Processing Systems, pages 6000-6010. Users
   may modify or implement in a different way during application.
Parameters:
      * d_model (int) -- the number of expected features in the
        input (required).
  * **nhead** (*int*) -- the number of heads in the
    multiheadattention models (required).

  * **dim_feedforward** (*int*) -- the dimension of the
