FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

remove unnecessary cache in simple tokenizer by aisk · Pull Request #374 · openai/CLIP · GitHub

/ CLIP Public

remove unnecessary cache in simple tokenizer - #374

Open
aisk wants to merge 1 commit into
openai:mainfrom
aisk:main
Open

aisk wants to merge 1 commit into
openai:mainfrom
aisk:main

Conversation

aisk commented Jul 10, 2023

Copy link
Copy Markdown

The default_bpe() is called as default parameter in constructor of SimpleTokenizer. Since python's function default parameters only execute once when the function definition is executed, so there is no need to cache it, and the operation is not so expensive.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL