Wraps arbitrary expressions as a Layer object.

Inherits From: Layer, Module

Used in the notebooks

Used in the tutorials

The Lambda layer exists so that arbitrary expressions can be used as a Layer when constructing Sequential and Functional API models. Lambda layers are best suited for simple operations or quick experimentation. For more advanced use cases, follow this guide for subclassing tf.keras.layers