Upload modeling_ltgbert.py with huggingface_hub
Browse files- 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):
|