Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
3a00674c
Commit
3a00674c
authored
Jun 27, 2019
by
thomwolf
Browse files
fix imports
parent
d939d6fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
examples/run_bert_classifier.py
examples/run_bert_classifier.py
+1
-1
examples/run_bert_squad.py
examples/run_bert_squad.py
+1
-1
examples/run_xlnet_classifier.py
examples/run_xlnet_classifier.py
+1
-1
examples/run_xlnet_squad.py
examples/run_xlnet_squad.py
+1
-1
No files found.
examples/run_bert_classifier.py
View file @
3a00674c
...
...
@@ -34,7 +34,7 @@ from torch.nn import CrossEntropyLoss, MSELoss
from
tensorboardX
import
SummaryWriter
from
pytorch_pretrained_bert
.file_utils
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert.modeling
import
BertForSequenceClassification
from
pytorch_pretrained_bert.tokenization
import
BertTokenizer
from
pytorch_pretrained_bert.optimization
import
BertAdam
,
WarmupLinearSchedule
...
...
examples/run_bert_squad.py
View file @
3a00674c
...
...
@@ -33,7 +33,7 @@ from tqdm import tqdm, trange
from
tensorboardX
import
SummaryWriter
from
pytorch_pretrained_bert
.file_utils
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert.modeling
import
BertForQuestionAnswering
from
pytorch_pretrained_bert.optimization
import
BertAdam
,
WarmupLinearSchedule
from
pytorch_pretrained_bert.tokenization
import
BertTokenizer
...
...
examples/run_xlnet_classifier.py
View file @
3a00674c
...
...
@@ -34,7 +34,7 @@ from torch.nn import CrossEntropyLoss, MSELoss
from
tensorboardX
import
SummaryWriter
from
pytorch_pretrained_bert
.file_utils
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert.modeling_xlnet
import
XLNetForSequenceClassification
from
pytorch_pretrained_bert.tokenization_xlnet
import
XLNetTokenizer
from
pytorch_pretrained_bert.optimization
import
BertAdam
,
WarmupLinearSchedule
...
...
examples/run_xlnet_squad.py
View file @
3a00674c
...
...
@@ -33,7 +33,7 @@ from tqdm import tqdm, trange
from
tensorboardX
import
SummaryWriter
from
pytorch_pretrained_bert
.file_utils
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert
import
WEIGHTS_NAME
,
CONFIG_NAME
from
pytorch_pretrained_bert.modeling_xlnet
import
BertForQuestionAnswering
from
pytorch_pretrained_bert.tokenization_xlnet
import
XLNetTokenizer
from
pytorch_pretrained_bert.optimization
import
BertAdam
,
WarmupLinearSchedule
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment