Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into update/codeowners
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Aug 16, 2021
2 parents d745aa1 + 0e8c0ce commit 9e6da35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/image/embedding/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def forward(self, x) -> torch.Tensor:
if isinstance(x, tuple):
x = x[-1]

if x.dim() == 4 and self.embedding_dim:
if x.dim() == 4 and not self.embedding_dim:
x = self.apply_pool(x)

x = self.head(x)
Expand Down

0 comments on commit 9e6da35

Please sign in to comment.