We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42971a3 commit 752540eCopy full SHA for 752540e
src/transformers/models/owlvit/modeling_owlvit.py
@@ -401,7 +401,7 @@ def eager_attention_forward(
401
class OwlViTAttention(nn.Module):
402
"""Multi-headed attention from 'Attention Is All You Need' paper"""
403
404
- def __init__(self, config: Union[OwlViTVisionConfig, OwlViTTextConfig]):
+ def __init__(self, config):
405
super().__init__()
406
self.config = config
407
self.embed_dim = config.hidden_size
0 commit comments