Radamés Ajna
Duplicate from hf-internal-testing/test_dynamic_model_with_util
628be02
from transformers import BertModel
from .configuration import NewModelConfig
from .util import ImportLayer
class NewModel(BertModel):
config_class = NewModelConfig
def __init__(self, config):
super().__init__(config)
self.last_layer = ImportLayer(config.hidden_size, config.new_hidden_size)