Custom layers and models, TensorFlow Authors, 2024TensorFlow Documentation (Google) - This guide directly explains how to create custom Keras layers by subclassing Layer, covering __init__, build, and call methods.
Layer class, Keras Team, 2024Keras Documentation - Official API reference for the tf.keras.layers.Layer base class, detailing its methods and attributes.