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
4621ad6f
Commit
4621ad6f
authored
Dec 23, 2019
by
Aymeric Augustin
Browse files
Use the same pattern as everywhere else.
This is really just for consistency.
parent
a31d4a29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/transformers/tokenization_transfo_xl.py
src/transformers/tokenization_transfo_xl.py
+2
-4
No files found.
src/transformers/tokenization_transfo_xl.py
View file @
4621ad6f
...
@@ -26,14 +26,12 @@ from collections import Counter, OrderedDict
...
@@ -26,14 +26,12 @@ from collections import Counter, OrderedDict
import
numpy
as
np
import
numpy
as
np
from
.file_utils
import
cached_path
from
.file_utils
import
cached_path
,
is_torch_available
from
.tokenization_utils
import
PreTrainedTokenizer
from
.tokenization_utils
import
PreTrainedTokenizer
try
:
if
is_torch_available
()
:
import
torch
import
torch
except
ImportError
:
pass
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
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