model-optimization
model-optimization copied to clipboard
A toolkit to optimize ML models for deployment for Keras and TensorFlow, including quantization and pruning.
Q1. Can I train a model from scratch using Quantization aware training? Or It can only be used as fine-tuning method ? Q2. Are QFormats for weight tensors decided before...
### 1. System information TFLM Tensorflow r2.5 ### 2. Code code in tensorflow\tensorflow\lite\tools\optimize\modify_model_interface.cc Function: RemoveInputTensor `code: c // Removes the input tensor and the related operator. for (auto tot :...
Hey, I am using the quantization Wrapper and keep getting the following warning: ``` WARNING:tensorflow:AutoGraph could not transform and will run it as-is. Please report this to the TensorFlow team....
Hello, i met a new issue when i tried to translate the weight of a pytorch model after QAT to a keras model. My model contains a depthwise convolution layer...
I converted Pytorch model to onnx model, and then to tensorflow model, I convert tensorflow model to float tflite model and int tflite model(with post training quantization). Currently, my int...
https://tensorflow.google.cn/lite/performance/quantization_spec from this document we can see the post-training quantization do asymmetric quantization for activations, do symmetric quantization for wieghts. I follow this guide: https://tensorflow.google.cn/lite/performance/post_training_integer_quant do full int8 quantization for...
Hello, I found a performance issue in the definition of `encode`, tensorflow_model_optimization/python/core/internal/tensor_encoding/stages/research/kashin.py, [tf.cast](https://github.com/tensorflow/model-optimization/blob/d1559484e6e2f7147e38077813d1b0511d407117/tensorflow_model_optimization/python/core/internal/tensor_encoding/stages/research/kashin.py#L201) will be calculated repeatedly during program execution, resulting in reduced efficiency. I think it should be created...
### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04 - TensorFlow installation (pip package or built from source): pip - TensorFlow library (version,...