strict=True for debugging
Browse files- modeling_bert.py +1 -1
modeling_bert.py
CHANGED
@@ -329,7 +329,7 @@ class BertPreTrainedModel(nn.Module):
|
|
329 |
"""
|
330 |
# Instantiate model.
|
331 |
model = cls(config, *inputs, **kwargs)
|
332 |
-
load_return = model.load_state_dict(state_dict_from_pretrained(model_name), strict=
|
333 |
logger.info(load_return)
|
334 |
return model
|
335 |
|
|
|
329 |
"""
|
330 |
# Instantiate model.
|
331 |
model = cls(config, *inputs, **kwargs)
|
332 |
+
load_return = model.load_state_dict(state_dict_from_pretrained(model_name), strict=True)
|
333 |
logger.info(load_return)
|
334 |
return model
|
335 |
|