Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
83857ffe
Unverified
Commit
83857ffe
authored
Mar 15, 2019
by
tseretelitornike
Committed by
GitHub
Mar 15, 2019
Browse files
Added missing imports.
parent
d5c037c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/run_swag.py
examples/run_swag.py
+3
-1
No files found.
examples/run_swag.py
View file @
83857ffe
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
# limitations under the License.
# limitations under the License.
"""BERT finetuning runner."""
"""BERT finetuning runner."""
from
__future__
import
absolute_import
import
argparse
import
argparse
import
csv
import
csv
import
logging
import
logging
...
@@ -31,7 +33,7 @@ from torch.utils.data.distributed import DistributedSampler
...
@@ -31,7 +33,7 @@ from torch.utils.data.distributed import DistributedSampler
from
tqdm
import
tqdm
,
trange
from
tqdm
import
tqdm
,
trange
from
pytorch_pretrained_bert.file_utils
import
PYTORCH_PRETRAINED_BERT_CACHE
from
pytorch_pretrained_bert.file_utils
import
PYTORCH_PRETRAINED_BERT_CACHE
from
pytorch_pretrained_bert.modeling
import
BertForMultipleChoice
from
pytorch_pretrained_bert.modeling
import
(
BertForMultipleChoice
,
BertConfig
,
WEIGHTS_NAME
,
CONFIG_NAME
)
from
pytorch_pretrained_bert.optimization
import
BertAdam
,
warmup_linear
from
pytorch_pretrained_bert.optimization
import
BertAdam
,
warmup_linear
from
pytorch_pretrained_bert.tokenization
import
BertTokenizer
from
pytorch_pretrained_bert.tokenization
import
BertTokenizer
...
...
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