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
85d2d8c9
"vscode:/vscode.git/clone" did not exist on "7265dd8cc82e41624b4a979a22f0d15dba55e956"
Unverified
Commit
85d2d8c9
authored
Oct 01, 2020
by
Lysandre Debut
Committed by
GitHub
Oct 01, 2020
Browse files
Fix local_files_only for TF (#6091)
parent
9e80f972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-1
No files found.
src/transformers/file_utils.py
View file @
85d2d8c9
...
...
@@ -847,7 +847,7 @@ def get_from_cache(
else
:
matching_files
=
[
file
for
file
in
fnmatch
.
filter
(
os
.
listdir
(
cache_dir
),
filename
+
".*"
)
for
file
in
fnmatch
.
filter
(
os
.
listdir
(
cache_dir
),
filename
.
split
(
"."
)[
0
]
+
".*"
)
if
not
file
.
endswith
(
".json"
)
and
not
file
.
endswith
(
".lock"
)
]
if
len
(
matching_files
)
>
0
:
...
...
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