src/transformers/models/blenderbot/modeling_tf_blenderbot.py/TFBlenderbotMainLayer/__init__
class TFBlenderbotMainLayer:    def __init__(self, config: BlenderbotConfig, **kwargs):
        super().__init__(**kwargs)

        self.config = config
        self.shared = tf.keras.layers.Embedding(
            input_dim=config.vocab_size,
            output_dim=config.d_model,
            embeddings_initializer=tf.keras.initializers.TruncatedNormal(stddev=self.config.init_std),
            name="model.shared",
        )
        # Additional attribute to specify the expected name scope of the layer (for loading/storing weights)
        self.shared.load_weight_prefix = "model.shared"

        self.encoder = TFBlenderbotEncoder(config, self.shared, name="encoder")
        self.decoder = TFBlenderbotDecoder(config, self.shared, name="decoder")