davda54 commited on
Commit
ac9b82c
1 Parent(s): a9ad13d

Upload modeling_ltgbert.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. modeling_ltgbert.py +2 -0
modeling_ltgbert.py CHANGED
@@ -256,6 +256,8 @@ class LtgbertPreTrainedModel(PreTrainedModel):
256
  module.bias.data.zero_()
257
  if module.weight is not None:
258
  module.weight.data.fill_(1.0)
 
 
259
 
260
 
261
  class LtgbertModel(LtgbertPreTrainedModel):
 
256
  module.bias.data.zero_()
257
  if module.weight is not None:
258
  module.weight.data.fill_(1.0)
259
+ if module.weight is not None:
260
+ module.weight.data.fill_(1.0)
261
 
262
 
263
  class LtgbertModel(LtgbertPreTrainedModel):