voice_clone_v3 / transformers /utils /test_module /custom_configuration.py
ahassoun's picture
Upload 3018 files
ee6e328
raw history blame
No virus
380 Bytes
from transformers import PretrainedConfig
class CustomConfig(PretrainedConfig):
model_type = "custom"
def __init__(self, attribute=1, **kwargs):
self.attribute = attribute
super().__init__(**kwargs)
class NoSuperInitConfig(PretrainedConfig):
model_type = "custom"
def __init__(self, attribute=1, **kwargs):
self.attribute = attribute