qkeras icon indicating copy to clipboard operation
qkeras copied to clipboard

QKeras: a quantization deep learning library for Tensorflow Keras

Results 53 qkeras issues
Sort by recently updated
recently updated
newest added

I can't figure out how to get back a model from an AutoQKeras search in one script, when in another script. I tried to use `qmodel.save('qmodel')` and `qmodel = load_qmodel('qmodel')`,...

Hi all, My setup is: Arch Linux 5.15.78-1-lts Python 3.10.8 Tensorflow 2.11.0 Numpy 1.23.0 qkeras 0.9.0 I am running the following example code: ```python import tensorflow as tf import numpy...

Hello, I am using a quantized QKeras model, where all the Conv, BatchNormalization, and Dense parameters have been quantized to 4 bits. However, when I run the predict function of...

Greetings, I am trying to quantize the network for the KWS application using DS CNN. The network is described here ([LINK](https://github.com/mlcommons/tiny/blob/master/benchmark/training/keyword_spotting/keras_model.py))(lines from 85 to 141). When running AutoQKeras, It shows...

I'm trying to implement inference on a hardware using the Xilinx ap_fixed for a model quantized with alpha='auto'. With alpha=1 it is straightforward. The weights (after applying the quantizer) can...

Any plans on upgrading qkeras to keras v3?

Starting with tensorflow 2.13 `tensorflow.python.ops.array_ops` no longer has `unstack`. One must take it from array_ops_stack. (The alternate fix would be to import `tensorflow.python.ops.array_ops_stack` separately.

There is a related issue #111, But, I'm still confused about how to get the scale value after full integer quantization , any one knows how to get it ?

I have the following code: ``` #!/usr/bin/env python # coding: utf-8 from tensorflow.keras.datasets import mnist from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Activation, Flatten, Input from tensorflow.keras.utils import to_categorical from...

https://github.com/google/qkeras/blob/dc0bce96c269750ca21f8fc0c44864011d7cdc43/qkeras/quantizers.py#L1287 states that leaving `alpha` at the default value of `None` should result in `alpha` being set to `1`, but that's not the case which leads to unexpected behavior in...