Markus28 commited on
Commit
0ce78aa
1 Parent(s): 871fd36

removed from_config

Browse files
Files changed (1) hide show
  1. modeling_bert.py +0 -4
modeling_bert.py CHANGED
@@ -335,10 +335,6 @@ class BertPreTrainedModel(nn.Module):
335
  logger.info(load_return)
336
  return model
337
 
338
- @classmethod
339
- def _from_config(cls, config, *inputs, **kwargs):
340
- model = cls(config, *inputs, **kwargs)
341
- return model
342
 
343
  class BertModel(BertPreTrainedModel):
344
  def __init__(self, config: JinaBertConfig, add_pooling_layer=True):
 
335
  logger.info(load_return)
336
  return model
337
 
 
 
 
 
338
 
339
  class BertModel(BertPreTrainedModel):
340
  def __init__(self, config: JinaBertConfig, add_pooling_layer=True):