Skip to content

Commit

Permalink
Update clip_image_model.py (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
divyashreepathihalli authored Feb 26, 2024
1 parent 7aac721 commit e170bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_cv/models/feature_extractor/clip/clip_image_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def call(self, x):
patch_embeddings, (batch_size, self.num_patches, -1)
)
class_embeds = ops.broadcast_to(
self.class_embedding, (batch_size, 1, self.width)
self.class_embedding.value, (batch_size, 1, self.width)
)
embeddings = ops.concatenate(
[class_embeds, patch_embeddings], axis=1
Expand Down

0 comments on commit e170bfe

Please sign in to comment.