mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[PR #374] remove unnecessary cache in simple tokenizer #494
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#494
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/openai/CLIP/pull/374
Author: @aisk
Created: 7/10/2023
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
77c7ef0remove unnecessary cache in simple tokenizer📊 Changes
1 file changed (+0 additions, -1 deletions)
View changed files
📝
clip/simple_tokenizer.py(+0 -1)📄 Description
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 issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.