Skip to content

Commit 3c69f98

Browse files
ozabludafchollet
authored andcommitted
Typos: "re-use", "a same". (#8236)
1 parent 3fa689f commit 3c69f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templates/getting-started/functional-api-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ model.fit(data, labels) # starts training
4141

4242
## All models are callable, just like layers
4343

44-
With the functional API, it is easy to re-use trained models: you can treat any model as if it were a layer, by calling it on a tensor. Note that by calling a model you aren't just re-using the *architecture* of the model, you are also re-using its weights.
44+
With the functional API, it is easy to reuse trained models: you can treat any model as if it were a layer, by calling it on a tensor. Note that by calling a model you aren't just reusing the *architecture* of the model, you are also reusing its weights.
4545

4646
```python
4747
x = Input(shape=(784,))
@@ -256,7 +256,7 @@ assert lstm.get_output_at(1) == encoded_b
256256

257257
Simple enough, right?
258258

259-
The same is true for the properties `input_shape` and `output_shape`: as long as the layer has only one node, or as long as all nodes have the same input/output shape, then the notion of "layer output/input shape" is well defined, and that one shape will be returned by `layer.output_shape`/`layer.input_shape`. But if, for instance, you apply a same `Conv2D` layer to an input of shape `(32, 32, 3)`, and then to an input of shape `(64, 64, 3)`, the layer will have multiple input/output shapes, and you will have to fetch them by specifying the index of the node they belong to:
259+
The same is true for the properties `input_shape` and `output_shape`: as long as the layer has only one node, or as long as all nodes have the same input/output shape, then the notion of "layer output/input shape" is well defined, and that one shape will be returned by `layer.output_shape`/`layer.input_shape`. But if, for instance, you apply the same `Conv2D` layer to an input of shape `(32, 32, 3)`, and then to an input of shape `(64, 64, 3)`, the layer will have multiple input/output shapes, and you will have to fetch them by specifying the index of the node they belong to:
260260

261261
```python
262262
a = Input(shape=(32, 32, 3))
@@ -318,7 +318,7 @@ z = keras.layers.add([x, y])
318318

319319
### Shared vision model
320320

321-
This model re-uses the same image-processing module on two inputs, to classify whether two MNIST digits are the same digit or different digits.
321+
This model reuses the same image-processing module on two inputs, to classify whether two MNIST digits are the same digit or different digits.
322322

323323
```python
324324
from keras.layers import Conv2D, MaxPooling2D, Input, Dense, Flatten

0 commit comments

Comments
 (0)