How to Build Your Own PyTorch Neural Network Layer from Scratch
towardsdatascience.com