annnli commited on
Commit
887f484
·
verified ·
1 Parent(s): 05d2b8b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. modeling_roberta_cl.py +1 -1
modeling_roberta_cl.py CHANGED
@@ -333,9 +333,9 @@ class RobertaForCL(RobertaForSequenceClassification):
333
 
334
  if self.model_args and getattr(self.model_args, "do_mlm", False):
335
  self.lm_head = RobertaLMHead(config)
 
336
 
337
  self.map = SemanticModel(input_dim=768)
338
- cl_init(self, config)
339
 
340
  # Initialize weights and apply final processing
341
  self.post_init()
 
333
 
334
  if self.model_args and getattr(self.model_args, "do_mlm", False):
335
  self.lm_head = RobertaLMHead(config)
336
+ cl_init(self, config)
337
 
338
  self.map = SemanticModel(input_dim=768)
 
339
 
340
  # Initialize weights and apply final processing
341
  self.post_init()