Skip to content

Commit

Permalink
Merge pull request tensorflow#28294 from tensorflow:ymodak-patch-1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 246174919
  • Loading branch information
tensorflower-gardener committed May 1, 2019
2 parents 195678b + e90399a commit ac6e979
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tensorflow/python/keras/layers/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ class Add(_Merge):
x1 = keras.layers.Dense(8, activation='relu')(input1)
input2 = keras.layers.Input(shape=(32,))
x2 = keras.layers.Dense(8, activation='relu')(input2)
added = keras.layers.Add()([x1, x2]) # equivalent to added =
keras.layers.add([x1, x2])
# equivalent to `added = keras.layers.add([x1, x2])`
added = keras.layers.Add()([x1, x2])
out = keras.layers.Dense(4)(added)
model = keras.models.Model(inputs=[input1, input2], outputs=out)
```
Expand Down

0 comments on commit ac6e979

Please sign in to comment.