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
afc24ea5
"tests/optimization_test.py" did not exist on "158e82e061c02fc2f1613adb7ac1d1cb6adae71c"
Commit
afc24ea5
authored
Jan 13, 2020
by
Julien Chaumond
Browse files
In a parallel setup this could fail
parent
894812c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-2
No files found.
src/transformers/file_utils.py
View file @
afc24ea5
...
...
@@ -316,8 +316,7 @@ def get_from_cache(
if
isinstance
(
cache_dir
,
Path
):
cache_dir
=
str
(
cache_dir
)
if
not
os
.
path
.
exists
(
cache_dir
):
os
.
makedirs
(
cache_dir
)
os
.
makedirs
(
cache_dir
,
exist_ok
=
True
)
# Get eTag to add to filename, if it exists.
if
url
.
startswith
(
"s3://"
):
...
...
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