"git@developer.sourcefind.cn:modelzoo/cirideep_tensorflow.git" did not exist on "bf02ba36a925487e4554d23286ea0fad2210f97c"
Unverified Commit 6ed7e32f authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix move when the two cache folders exist (#8917)

parent 8453201c
...@@ -213,6 +213,7 @@ default_cache_path = os.path.join(hf_cache_home, "transformers") ...@@ -213,6 +213,7 @@ default_cache_path = os.path.join(hf_cache_home, "transformers")
# Onetime move from the old location to the new one if no ENV variable has been set. # Onetime move from the old location to the new one if no ENV variable has been set.
if ( if (
os.path.isdir(old_default_cache_path) os.path.isdir(old_default_cache_path)
and not os.path.isdir(default_cache_path)
and "PYTORCH_PRETRAINED_BERT_CACHE" not in os.environ and "PYTORCH_PRETRAINED_BERT_CACHE" not in os.environ
and "PYTORCH_TRANSFORMERS_CACHE" not in os.environ and "PYTORCH_TRANSFORMERS_CACHE" not in os.environ
and "TRANSFORMERS_CACHE" not in os.environ and "TRANSFORMERS_CACHE" not in os.environ
......
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