Generalized Layers