[PR #287] Fixed the problem with torch.jit.script #484

Open
opened 2026-10-31 21:15:26 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openai/CLIP/pull/287
Author: @adavoudi
Created: 9/7/2022
Status: 🔄 Open

Base: main ← Head: main


📝 Commits (3)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 clip/model.py (+2 -1)

📄 Description

Because of the LayerNorm implementation, we cannot convert the plain model to a jit script. This PR fixes that.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openai/CLIP/pull/287 **Author:** [@adavoudi](https://github.com/adavoudi) **Created:** 9/7/2022 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`f9bc837`](https://github.com/openai/CLIP/commit/f9bc83733b5a3490b0be5e731f75bdfe5f276be4) Update model.py - [`f77e7c2`](https://github.com/openai/CLIP/commit/f77e7c24676a086ce6ad0f07d91da44c7f699c82) Update model.py - [`7451020`](https://github.com/openai/CLIP/commit/7451020bbb684950107fb2855e59ce66ee352319) Update model.py ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `clip/model.py` (+2 -1) </details> ### 📄 Description Because of the `LayerNorm` implementation, we cannot convert the plain model to a jit script. This PR fixes that. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#484
No description provided.