-
Couldn't load subscription status.
- Fork 2
Open
Labels
good first issueGood for newcomersGood for newcomersspreeIssues for Scala SpreeIssues for Scala Spree
Description
The Keras API is TensorFlow's high-level API for building deep learning models. It defines a model as a series of successive layers, each of which has an input and output shape.
Some interesting Keras layers:
- Reshape, which requires the output shape to have the same number of elements as the inputs
- Flatten, which has an output shape determined by the input shape (the product of the dimensions)
The functional API especially could be typed by tf-dotty (as long as each layer is assigned to a different variable, unlike in the Python sample below)
encoder_input = keras.Input(shape=(28, 28, 1), name='img')
x = layers.Conv2D(16, 3, activation='relu')(encoder_input)
x = layers.Conv2D(32, 3, activation='relu')(x)
x = layers.MaxPooling2D(3)(x)
x = layers.Conv2D(32, 3, activation='relu')(x)
x = layers.Conv2D(16, 3, activation='relu')(x)
encoder_output = layers.GlobalMaxPooling2D()(x)Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersspreeIssues for Scala SpreeIssues for Scala Spree