Skip to content

Commit 1e02d16

Browse files
Shiva ChilukamariShiva Chilukamari
authored andcommitted
Bug fix
1 parent c802a67 commit 1e02d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sam-vit-base/QNN/model_patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def forward(
296296
hidden_states = residual + hidden_states
297297
layernorm_output = self.model.layer_norm2(hidden_states)
298298
hidden_states = hidden_states + self.mlp(layernorm_output)
299-
return hidden_states
299+
return hidden_states, attn_weights
300300

301301

302302
class ModSamModel(nn.Module):

0 commit comments

Comments
 (0)