model-optimization icon indicating copy to clipboard operation
model-optimization copied to clipboard

model written with tf2.6.0 (not using keras) cannot find instructions to do quantization aware training, only keras model based quantization example can be found

Open SkylerZheng opened this issue 3 years ago • 1 comments

I wrote my code with tensorflow 2.0, some of my code used tf.compat.v1, I'm trying to do quantization aware training for my model, however, I cannot find any functions except keras related quantization functions. My question is to do quantization aware training, do I have to write my model using Keras?

SkylerZheng avatar Sep 01 '21 00:09 SkylerZheng

Current QAT feature is based on the Keras API. See the following document as well:

https://www.tensorflow.org/model_optimization/guide/quantization/training

abattery avatar Sep 01 '21 12:09 abattery