[GH-ISSUE #391] Question regarding AttentionPooling2d #335

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

Originally created by @tanayag on GitHub (Sep 27, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/391

While initializing parameters of 2D Attention Pooling for positional embeddings, why are they initialized with "torch.randn()" instead of something like Sinosuldal function?

Does this hold any relevance? Or can we replace it with Sin Cos function?

Originally created by @tanayag on GitHub (Sep 27, 2023). Original GitHub issue: https://github.com/openai/CLIP/issues/391 While initializing parameters of 2D Attention Pooling for **positional embeddings,** why are they initialized with "torch.randn()" instead of something like Sinosuldal function? Does this hold any relevance? Or can we replace it with Sin Cos function?
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#335
No description provided.