January 2018
Intermediate to advanced
474 pages
10h 23m
English
In the functional API, the layers are created first in a functional manner, and then while creating the model, the input and output layers are provided as tensor arguments, as we covered in the previous section.
Here is an example:
input = Input(shape=(64,))
hidden = Dense(10)(inputs)
hidden = Activation('tanh')(hidden)hidden = Dense(10)(hidden)output = Activation('tanh')(hidden)
model = Model(inputs=input, outputs=output) ...
Read now
Unlock full access