File size: 373 Bytes
34fa1de
 
 
 
90a2fb8
34fa1de
 
 
 
 
 
 
 
 
 
 
90a2fb8
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from transformers import PretrainedConfig


class MLPConfig(PretrainedConfig):
    model_type = "mlp"

    def __init__(
        self,
        input_size: int = 784,
        output_size: int = 4096,
        **kwargs,
    ):
        self.input_size = input_size
        self.output_size = output_size
        super().__init__(**kwargs)


MLPConfig.register_for_auto_class()