identity layer this layer should be used as a placeholder when no operation is to be performed the layer just returns its inputs argument as output identity layer this layer should be used as a placeholder when no operation is to be performed the layer just returns its inputs argument as output
from keras.api_export import keras_export
from keras.layers.layer import Layer


@keras_export("keras.layers.Identity")
class Identity(Layer):
    

    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.supports_masking = True

    def call(self, inputs):
        return inputs