Unverified Commit 1bc13697 authored by Mohamed Taher Alrefaie's avatar Mohamed Taher Alrefaie Committed by GitHub
Browse files

Update convert_pytorch_checkpoint_to_tf2.py (#5531)

fixed ImportError: cannot import name 'hf_bucket_url'
parent b2309cc6
...@@ -71,11 +71,11 @@ from transformers import ( ...@@ -71,11 +71,11 @@ from transformers import (
XLMRobertaConfig, XLMRobertaConfig,
XLNetConfig, XLNetConfig,
cached_path, cached_path,
hf_bucket_url,
is_torch_available, is_torch_available,
load_pytorch_checkpoint_in_tf2_model, load_pytorch_checkpoint_in_tf2_model,
) )
from transformers.file_utils import hf_bucket_url
if is_torch_available(): if is_torch_available():
import torch import torch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment