Skip to content

Commit 23fba61

Browse files
Update guides/md/quantization/overview.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 4970e3a commit 23fba61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/md/quantization/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,21 @@ Typical workflow:
8585
import keras
8686
import numpy as np
8787

88-
# Sample training data
88+
# Sample training data.
8989
x_train = keras.ops.array(np.random.rand(100, 10))
9090
y_train = keras.ops.array(np.random.rand(100, 1))
9191

92-
# Build the model
92+
# Build the model.
9393
model = keras.Sequential([
9494
keras.layers.Dense(32, activation="relu", input_shape=(10,)),
9595
keras.layers.Dense(1)
9696
])
9797

98-
# Compile and fit the model
98+
# Compile and fit the model.
9999
model.compile(optimizer="adam", loss="mean_squared_error")
100100
model.fit(x_train, y_train, epochs=1, verbose=0)
101101

102-
# Quantize the model
102+
# Quantize the model.
103103
model.quantize("int8")
104104
```
105105

0 commit comments

Comments
 (0)