tf.keras.layers.Layer | TensorFlow Core v2.7.0
www.tensorflow.org › api_docs › pythonA layer is a callable object that takes as input one or more tensors and that outputs one or more tensors. It involves computation, defined in the call () method, and a state (weight variables), defined either in the constructor __init__ () or in the build () method. Users will just instantiate a layer and then treat it as a callable.