
Resources
PyTorch reference
| PyTorch class | Description |
|---|---|
nn.Linear | Applies an affine linear transformation to the incoming data: . |
nn.GELU | Applies the Gaussian Error Linear Units function. |
nn.ReLU | Applies the rectified linear unit function element-wise. |
nn.Dropout | During training, randomly zeroes some of the elements of the input tensor with probability p. |
nn.LayerNorm | Applies Layer Normalization over a mini-batch of inputs. |
References
- Chen, T., Kornblith, S., Norouzi, M., Hinton, G. (2020). A simple framework for contrastive learning of visual representations.
- Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., et al. (2020). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale.
- Jetley, S., Lord, N., Lee, N., Torr, P. (2018). Learn To Pay Attention.
- Ramachandran, P., Zoph, B., Le, Q. (2017). Searching for Activation Functions.
- Tsai, Y., Bai, S., Yamada, M., Morency, L., Salakhutdinov, R. (2019). Transformer Dissection: A Unified Understanding of Transformer’s Attention via the Lens of Kernel.

