mirror of
https://github.com/openai/whisper.git
synced 2025-03-30 14:28:27 +00:00
nit
This commit is contained in:
parent
9d8d372a4d
commit
34db988568
@ -207,6 +207,7 @@ class AudioEncoder(nn.Module):
|
||||
for block in self.blocks:
|
||||
x = block(x)
|
||||
if block.attn.attention_scores is not None:
|
||||
print(f"Captured attention scores from layer {len(self.all_attention_scores)}")
|
||||
self.all_attention_scores.append(block.attn.attention_scores)
|
||||
|
||||
x = self.ln_post(x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user