We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c802a67 commit 1e02d16Copy full SHA for 1e02d16
sam-vit-base/QNN/model_patches.py
@@ -296,7 +296,7 @@ def forward(
296
hidden_states = residual + hidden_states
297
layernorm_output = self.model.layer_norm2(hidden_states)
298
hidden_states = hidden_states + self.mlp(layernorm_output)
299
- return hidden_states
+ return hidden_states, attn_weights
300
301
302
class ModSamModel(nn.Module):
0 commit comments