src/transformers/models/mobilebert/modeling_tf_mobilebert.py/TFMobileBertIntermediate/__init__
class TFMobileBertIntermediate:    def __init__(self, config, **kwargs):
        super().__init__(**kwargs)

        self.dense = tf.keras.layers.Dense(config.intermediate_size, name="dense")

        if isinstance(config.hidden_act, str):
            self.intermediate_act_fn = get_tf_activation(config.hidden_act)
        else:
            self.intermediate_act_fn = config.hidden_act