Skip to content

Commit 1408a1a

Browse files
committed
fix quantize_annotate_layer() got an unexpected keyword argument 'input_shape'
1 parent 23b274b commit 1408a1a

File tree

1 file changed

+1
-2
lines changed
  • tensorflow_model_optimization/python/examples/quantization/keras

1 file changed

+1
-2
lines changed

tensorflow_model_optimization/python/examples/quantization/keras/mnist_cnn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959

6060
model = tf.keras.Sequential([
6161
quantize.quantize_annotate_layer(
62-
l.Conv2D(32, 5, padding='same', activation='relu'),
63-
input_shape=input_shape),
62+
l.Conv2D(32, 5, padding='same', activation='relu', input_shape=input_shape)),
6463
l.MaxPooling2D((2, 2), (2, 2), padding='same'),
6564
quantize.quantize_annotate_layer(
6665
l.Conv2D(64, 5, padding='same', activation='relu')),

0 commit comments

Comments
 (0)