mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-14 18:18:24 +06:00
Merge pull request #899 from sukuya/master
Fixed import to use torchscript flag.
This commit is contained in:
commit
46cc9dd2b5
@ -74,7 +74,7 @@ according to a ``BertConfig`` class and then saved to disk under the filename ``
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from pytorch_pretrained_bert import BertModel, BertTokenizer, BertConfig
|
||||
from pytorch_transformers import BertModel, BertTokenizer, BertConfig
|
||||
import torch
|
||||
|
||||
enc = BertTokenizer.from_pretrained("bert-base-uncased")
|
||||
|
Loading…
Reference in New Issue
Block a user