Skip to content

Commit 752540e

Browse files
committed
fixes
1 parent 42971a3 commit 752540e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/models/owlvit/modeling_owlvit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def eager_attention_forward(
401401
class OwlViTAttention(nn.Module):
402402
"""Multi-headed attention from 'Attention Is All You Need' paper"""
403403

404-
def __init__(self, config: Union[OwlViTVisionConfig, OwlViTTextConfig]):
404+
def __init__(self, config):
405405
super().__init__()
406406
self.config = config
407407
self.embed_dim = config.hidden_size

0 commit comments

Comments
 (0)