oweller2
commited on
Commit
•
47fa45e
1
Parent(s):
f83d8e4
working
Browse files- modeling_flexbert.py +1 -1
modeling_flexbert.py
CHANGED
@@ -1536,7 +1536,7 @@ class FlexBertForCasualLM(FlexBertPreTrainedModel):
|
|
1536 |
# Initialize weights and apply final processing
|
1537 |
self._init_weights(reset_params=False)
|
1538 |
|
1539 |
-
|
1540 |
# Handle the XOR condition
|
1541 |
assert (module is None) != (reset_params is None), "arg module xor reset_params must be specified"
|
1542 |
|
|
|
1536 |
# Initialize weights and apply final processing
|
1537 |
self._init_weights(reset_params=False)
|
1538 |
|
1539 |
+
def _init_weights(self, module: Optional[nn.Module] = None, reset_params: Optional[bool] = None):
|
1540 |
# Handle the XOR condition
|
1541 |
assert (module is None) != (reset_params is None), "arg module xor reset_params must be specified"
|
1542 |
|