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
bc659f86
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "aa925a52fad9d6b98dac4c1b27f881bef7e88dad"
Commit
bc659f86
authored
Dec 11, 2018
by
hzhwcmhf
Browse files
fix compatibility with python 3.5.2; convert path to str
parent
a3a3180c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pytorch_pretrained_bert/file_utils.py
pytorch_pretrained_bert/file_utils.py
+2
-2
No files found.
pytorch_pretrained_bert/file_utils.py
View file @
bc659f86
...
...
@@ -23,8 +23,8 @@ import requests
logger
=
logging
.
getLogger
(
__name__
)
# pylint: disable=invalid-name
PYTORCH_PRETRAINED_BERT_CACHE
=
Path
(
os
.
getenv
(
'PYTORCH_PRETRAINED_BERT_CACHE'
,
Path
.
home
()
/
'.pytorch_pretrained_bert'
))
PYTORCH_PRETRAINED_BERT_CACHE
=
str
(
Path
(
os
.
getenv
(
'PYTORCH_PRETRAINED_BERT_CACHE'
,
Path
.
home
()
/
'.pytorch_pretrained_bert'
))
)
def
url_to_filename
(
url
:
str
,
etag
:
str
=
None
)
->
str
:
...
...
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