simple_nn_model / configuration_simple_model.py
yasinamp's picture
Upload SimpleNN
8b17fbc verified
raw
history blame contribute delete
322 Bytes
from transformers import PretrainedConfig
# Define the configuration class
class SimpleNNConfig(PretrainedConfig):
model_type = "simple_nn"
def __init__(self, input_size=784, num_classes=10, **kwargs):
super().__init__(**kwargs)
self.input_size = input_size
self.num_classes = num_classes