Keras layers API
keras.io › api › layersKeras layers API. Layers are the basic building blocks of neural networks in Keras. A layer consists of a tensor-in tensor-out computation function (the layer's call method) and some state, held in TensorFlow variables (the layer's weights ). A Layer instance is callable, much like a function: Unlike a function, though, layers maintain a state, updated when the layer receives data during training, and stored in layer.weights: