model-optimization
model-optimization copied to clipboard
Support Quantizing a tf.keras Model inside another tf.keras Model
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.