"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "55d7190255c1fcc8997ac9b2a5feedbaf6754817"
Commit 19666dcb authored by thomwolf's avatar thomwolf
Browse files

Should fix #438

parent 1d8c2323
......@@ -91,6 +91,8 @@ def load_tf_weights_in_bert(model, tf_checkpoint_path):
pointer = getattr(pointer, 'bias')
elif l[0] == 'output_weights':
pointer = getattr(pointer, 'weight')
elif l[0] == 'squad':
pointer = getattr(pointer, 'classifier')
else:
try:
pointer = getattr(pointer, l[0])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment