Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now


TensorFlow 2.0 version View source on GitHub

Class Wrapper

Abstract wrapper base class.

Inherits From: Layer


  • Class tf.compat.v1.keras.layers.Wrapper
  • Class tf.compat.v2.keras.layers.Wrapper

Wrappers take another layer and augment it in various ways. Do not use this class as a layer, it is only an abstract base class. Two usable wrappers are the TimeDistributed and Bidirectional wrappers.


  • layer: The layer to be wrapped.


View source