mirror of
https://github.com/openai/whisper.git
synced 2025-11-28 08:11:11 +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:
|
for block in self.blocks:
|
||||||
x = block(x)
|
x = block(x)
|
||||||
if block.attn.attention_scores is not None:
|
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)
|
self.all_attention_scores.append(block.attn.attention_scores)
|
||||||
|
|
||||||
x = self.ln_post(x)
|
x = self.ln_post(x)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user