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
1bc13697
Unverified
Commit
1bc13697
authored
Jul 06, 2020
by
Mohamed Taher Alrefaie
Committed by
GitHub
Jul 06, 2020
Browse files
Update convert_pytorch_checkpoint_to_tf2.py (#5531)
fixed ImportError: cannot import name 'hf_bucket_url'
parent
b2309cc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/convert_pytorch_checkpoint_to_tf2.py
src/transformers/convert_pytorch_checkpoint_to_tf2.py
+1
-1
No files found.
src/transformers/convert_pytorch_checkpoint_to_tf2.py
View file @
1bc13697
...
...
@@ -71,11 +71,11 @@ from transformers import (
XLMRobertaConfig
,
XLNetConfig
,
cached_path
,
hf_bucket_url
,
is_torch_available
,
load_pytorch_checkpoint_in_tf2_model
,
)
from
transformers.file_utils
import
hf_bucket_url
if
is_torch_available
():
import
torch
...
...
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