src/transformers/models/hubert/modeling_tf_hubert.py/TFHubertMainLayer/__init__
class TFHubertMainLayer:    def __init__(self, config: HubertConfig, **kwargs):
        super().__init__(**kwargs)
        self.config = config
        self.feature_extractor = TFHubertFeatureExtractor(config, name="feature_extractor")
        self.feature_projection = TFHubertFeatureProjection(config, name="feature_projection")

        if config.do_stable_layer_norm:
            self.encoder = TFHubertEncoderStableLayerNorm(config, name="encoder")
        else:
            self.encoder = TFHubertEncoder(config, name="encoder")