mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-18 21:44:18 +00:00
fixed feat dim
This commit is contained in:
parent
bb8d016722
commit
3bd2e8e6cc
@ -336,7 +336,7 @@ class AlignmentAttentionModule(nn.Module):
|
||||
|
||||
attn_weights = self.cross_attn_weights(lm_pruned, am_pruned, pos_emb)
|
||||
label_level_am_representation = self.cross_attn(am_pruned, attn_weights)
|
||||
return label_level_am_representation
|
||||
return label_level_am_representation.reshape(batch_size, T, prune_range, encoder_dim)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user