Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

@parmeet
Copy link
Contributor

@parmeet parmeet commented Jul 14, 2022

Summary:
get_local_asset_path does not overwrite local file if it already exists. In certain scenarios, this may be needed. As an example, all the vocab files of BERTTokenizer are named as vocab.txt. When instantiating BERTTokenizer with different vocab file, this causes issue since it won't get overwritten. Hence we provide explicit overwrite argument in get_local_asset_path which the client code can use according to it's needs.

@parmeet parmeet merged commit e964051 into pytorch:main Jul 14, 2022
@parmeet parmeet deleted the fix_get_local_asset branch July 14, 2022 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants