google / google/qkeras

Can QKeras support Full integer quantization

Open
#111 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
584
Forks
108
PR merge metrics
No merged PRs in 30d

Description

I know I can get the weight and bias to INT8 by setting:
kernel_quantizer=quantized_bits(bits=8, integer=7, alpha=1)
bias_quantizer=quantized_bits(bits=8, integer=7, alpha=1)

However, sometimes, the input tensor is still float because we have to normalize the input.
So, my question is "Can QKeras support the quantization of input tensor?"

Contributor guide

Open the contributing guide

Research direction

Start by reviewing QKeras's existing weight and bias quantizer configuration and how normalized input tensors enter the model. Clarify the intended full-integer behavior and define done as documented support for quantizing the input tensor without losing the required normalization behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
keras, python, tensorflow
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.