Skip to content

Commit 90a3497

Browse files
committed
Update dependencyvit.py
1 parent 130e3bb commit 90a3497

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

timm/models/dependencyvit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ def forward(self, in_tuple: Tuple[torch.Tensor, torch.Tensor]) -> Tuple[torch.Te
122122
prune_mask = attn.detach().sum(1).sum(-1)
123123
#prune_mask = attn.detach().sum(1).abs().sum(-1)
124124
#prune_mask = attn.detach().abs().sum((1, -1))
125+
#prune_mask = attn.sum(1).sum(-1)
126+
#prune_mask = attn.sum(1).abs().sum(-1)
127+
#prune_mask = attn.abs().sum((1, -1))
125128
#prune_mask = m.reshape(B, N)
126129

127130
x = self.proj(x)

0 commit comments

Comments
 (0)