mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #312] BC-breaking pytorch 1.9 vs 1.7.1 in multi_head_attention_forward #269
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#269
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?
Originally created by @Zhaoyi-Yan on GitHub (Jan 18, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/312
https://github.com/pytorch/pytorch/blob/v1.7.1/torch/nn/functional.py#L4222
https://github.com/pytorch/pytorch/blob/v1.9.0/torch/nn/functional.py#L4836
I cannot find
scalingin pytorch 1.9, it seems has been removed. So, maybeFirst, [install PyTorch 1.7.1](https://pytorch.org/get-started/locally/) (or later) and torchvisionis not correct.@jongwook commented on GitHub (Jan 18, 2023):
It appears that they refactored the implementation, and the scaling part is now in:
https://github.com/pytorch/pytorch/blob/v1.9.0/torch/nn/functional.py#L4823