Merge branch 'xlnet' into doc-sphinx

This commit is contained in:
Thomas Wolf
2019-07-11 15:46:27 +02:00
committed by GitHub
18 changed files with 529 additions and 1782 deletions

View File

@@ -110,7 +110,7 @@ def load_tf_weights_in_openai_gpt(model, config, openai_checkpoint_folder_path):
except AssertionError as e:
e.args += (pointer.shape, array.shape)
raise
print("Initialize PyTorch weight {}".format(name))
logger.info("Initialize PyTorch weight {}".format(name))
pointer.data = torch.from_numpy(array)
return model