Skip to content

Commit

Permalink
Merge pull request #1 from sukuya/sukuya-patch-1
Browse files Browse the repository at this point in the history
Update torchscript.rst
  • Loading branch information
sukuya authored Jul 25, 2019
2 parents 067923d + 35c52f2 commit e1e2ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/torchscript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -129,4 +129,4 @@ Using the traced model for inference is as simple as using its ``__call__`` dund

.. code-block:: python
traced_model(tokens_tensor, segments_tensors)
traced_model(tokens_tensor, segments_tensors)

0 comments on commit e1e2ab3

Please sign in to comment.