Skip to content

Commit 1842d4d

Browse files
Update keras/src/layers/layer_test.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent c839df2 commit 1842d4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

keras/src/layers/layer_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@ def test_quantized_model_save_and_load(self):
17651765
inputs = layers.Input(shape=(None,))
17661766
x = layers.Embedding(input_dim=10, output_dim=10)(inputs)
17671767
x = layers.Dense(10)(x)
1768+
x = layers.BatchNormalization()(x) # Add batchnorm
17681769
model = models.Model(inputs=inputs, outputs=x)
17691770
path = os.path.join(self.get_temp_dir(), "quantized_model.keras")
17701771
model.quantize(mode="int8")

0 commit comments

Comments
 (0)