mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[PR #372] [MERGED] Fix torch._C.Node attribute access #492
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#492
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/372
Author: @jamt9000
Created: 7/6/2023
Status: ✅ Merged
Merged: 7/8/2023
Merged by: @jongwook
Base:
main← Head:james/torch2-getnode-fix📝 Commits (1)
2dbac90Fix torch._C.Node attribute access📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
clip/clip.py(+10 -2)📄 Description
Attribute access of a JIT graph node with subscripting would previously work due to patching in https://github.com/pytorch/pytorch/pull/82511 but this has been removed.
This commit uses the fix proposed in https://github.com/pytorch/pytorch/pull/82628 to define a helper method to call the appropriate access method.
Fixes https://github.com/openai/CLIP/issues/79 for Pytorch 2.0.0
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.