src/transformers/models/data2vec/modeling_data2vec_vision.py/Data2VecVisionIntermediate/__init__
class Data2VecVisionIntermediate:    def __init__(self, config: Data2VecVisionConfig) -> None:
        super().__init__()
        self.dense = nn.Linear(config.hidden_size, config.intermediate_size)
        if isinstance(config.hidden_act, str):
            self.intermediate_act_fn = ACT2FN[config.hidden_act]
        else:
            self.intermediate_act_fn = config.hidden_act