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

Support Quantizing a tf.keras Model inside another tf.keras Model

Open plooney opened this issue 3 years ago • 0 comments

Right now if I do something like

Quantize functional model

inputs = tf.keras.Input((3,)) out = tf.keras.layers.Dense(2)(inputs) seq = tf.keras.Sequential() seq.add(tf.keras.layers.Dense(2)) model = tf.keras.Model(inputs, seq(inputs)) quantized_model = quantize_model(model)

I get

Quantizing a tf.keras Model inside another tf.keras Model is not supported.

plooney avatar Apr 08 '22 10:04 plooney