Overview of TinyNeuralNetwork modules
mainTinyNeuralNetwork is a deep learning model compression framework providing the following core capabilities:
- Computational graph capture: Uses a
Graph Tracerto capture PyTorch operator connectivity, automating pruning, quantization, and code generation (e.g., tomodels.py). - Dependency resolving: Uses a
Graph Modifierto automatically handle subgraph mismatches when operators are modified. - Pruning: Implements various algorithms including OneShot (L1, L2, FPGM), ADMM, NetAdapt, Gradual, and End2End.
- Quantization-aware training (QAT): Uses PyTorch's QAT as a backend and supports simulated bfloat16 training. It automates operator fusion and computational graph quantization.
- Model conversion: Supports converting floating-point and quantized PyTorch models to TFLite models for deployment.