Skip to content

Commit

Permalink
Update dependencyvit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fffffgggg54 committed Dec 1, 2024
1 parent 3c07131 commit f32418c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timm/models/dependencyvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def forward(self, x: torch.Tensor, m: torch.Tensor) -> Tuple[torch.Tensor, torch
#prune_mask = attn.sum(1).abs().sum(-1)
#prune_mask = attn.abs().sum((1, -1))
#prune_mask = m.reshape(B, N)
purne_mask = m.detach().reshape(B, N)
prune_mask = m.detach().reshape(B, N)

x = self.proj(x)
x = self.proj_drop(x)
Expand Down

0 comments on commit f32418c

Please sign in to comment.