Skip to content

Commit

Permalink
DOC: don't reuse names in introductory example (keras-team#12721)
Browse files Browse the repository at this point in the history
* don't reuse names in introductory example

I would try to be as explicit as possible in the first example of the functional API

* Update functional-api-guide.md

rename symbolic tensors to output
  • Loading branch information
amueller authored and fchollet committed May 23, 2019
1 parent 58cebe9 commit 2f31fae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/templates/getting-started/functional-api-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ from keras.models import Model
inputs = Input(shape=(784,))

# a layer instance is callable on a tensor, and returns a tensor
x = Dense(64, activation='relu')(inputs)
x = Dense(64, activation='relu')(x)
predictions = Dense(10, activation='softmax')(x)
output_1 = Dense(64, activation='relu')(inputs)
output_2 = Dense(64, activation='relu')(output_1)
predictions = Dense(10, activation='softmax')(output_2)

# This creates a model that includes
# the Input layer and three Dense layers
Expand Down

0 comments on commit 2f31fae

Please sign in to comment.