.. image:: _static/img/meme.png :alt: homemade pytorch ###### Flint ###### A toy deep learning framework implemented in Numpy from scratch with a `PyTorch `_-like API. I'm trying to make it as clean as possible. Flint is not as powerful as torch, but it is still able to start a fire. ************ Installation ************ .. code-block:: bash git clone https://github.com/Renovamen/flint.git cd flint python setup.py install or .. code-block:: bash pip install git+https://github.com/Renovamen/flint.git --upgrade .. toctree:: :maxdepth: 1 :caption: API Documentation api/flint api/tensor api/nn api/nn.functional api/nn.init api/optim api/utils.data .. toctree:: :maxdepth: 1 :caption: Tutorials tutorials/simple ********************* Features ********************* Core ===================== Support autograding on the following operations: - Add - Substract - Negative - Muliply - Divide - Matmul - Power - Natural Logarithm - Exponential - Sum - Max - Softmax - Log Softmax - View - Transpose - Permute - Squeeze - Unsqueeze - Padding Layers ===================== - Linear - Convolution (1D / 2D) - MaxPooling (1D / 2D) - Unfold - Flatten - Dropout - Sequential - Identity Optimizers ===================== - SGD - Momentum - Adagrad - RMSprop - Adadelta - Adam Loss Functions ===================== - Cross Entropy - Negative Log Likelihood - Mean Squared Error - Binary Cross Entropy Activation Functions ===================== - ReLU - Sigmoid - Tanh - Leaky ReLU - GELU Initializers ===================== - Fill with zeros / ones / other given constants - Uniform / Normal - Xavier (Glorot) uniform / normal (`Understanding the Difficulty of Training Deep Feedforward Neural Networks. `_ *Xavier Glorot and Yoshua Bengio.* AISTATS 2010.) - Kaiming (He) uniform / normal (`Delving Deep into Rectifiers: Surpassing Human-level Performance on ImageNet Classification. `_ *Kaiming He, et al.* ICCV 2015.) - LeCun uniform / normal (`Efficient Backprop. `_ *Yann LeCun, et al.* 1998.) Others ===================== - Dataloaders ********************* License ********************* `MIT `_ ********************* Acknowledgements ********************* Flint is inspired by the following projects: - `PyTorch `_ - `karpathy/micrograd `_ - `teddykoker/tinyloader `_