Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 10, 2021
1 parent f5bfa4d commit e4fde45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'x-clip',
packages = find_packages(exclude=[]),
version = '0.0.3',
version = '0.0.4',
license='MIT',
description = 'X-CLIP',
author = 'Phil Wang',
Expand Down
2 changes: 1 addition & 1 deletion x_clip/x_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def forward(
image_to_text = text_to_image.t()

if self.extra_latent_projection:
image_to_text = einsum('t d, i d -> t i', text_latents_extra, image_latents_extra) * temp
image_to_text = einsum('t d, i d -> i t', text_latents_extra, image_latents_extra) * temp

# calculate loss

Expand Down

0 comments on commit e4fde45

Please sign in to comment.