mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Update convert_pytorch_checkpoint_to_tf2.py (#5531)
fixed ImportError: cannot import name 'hf_bucket_url'
This commit is contained in:
parent
b2309cc6bf
commit
1bc13697b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user