Optimizers =============================================== To deploy models on devices such as the iPhone, you often need to optimize the models to use less storage space, reduce power consumption, and reduce latency during inference. For an overview, see Optimizing Models Post-Training (`Compressing ML Program Weights `_ and `Compressing Neural Network Weights `_). PyTorch ------------------------- Compression for PyTorch models: .. toctree:: :maxdepth: 1 coremltools.optimize.torch.palettization.rst coremltools.optimize.torch.pruning.rst coremltools.optimize.torch.quantization.rst coremltools.optimize.torch.examples.rst Core ML ------------------------- Compression for Core ML models: .. toctree:: :maxdepth: 1 coremltools.optimize.coreml.palettization.rst coremltools.optimize.coreml.pruning.rst coremltools.optimize.coreml.quantization.rst coremltools.optimize.coreml.utilities.rst