mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
decoding
This commit is contained in:
parent
c553a8db17
commit
7355e20503
@ -496,8 +496,11 @@ class LLMASR2(nn.Module):
|
|||||||
|
|
||||||
batch_size, frames, _ = speech.shape
|
batch_size, frames, _ = speech.shape
|
||||||
|
|
||||||
|
with torch.cuda.amp.autocast(enabled=False):
|
||||||
# audio encoder
|
# audio encoder
|
||||||
encoder_out, encoder_out_lens = self.audio_encoder(speech.permute(0, 2, 1), speech_lengths)
|
encoder_out, encoder_out_lens = self.audio_encoder(
|
||||||
|
speech.permute(0, 2, 1), speech_lengths
|
||||||
|
)
|
||||||
|
|
||||||
# audio_adaptor
|
# audio_adaptor
|
||||||
encoder_out, encoder_out_lens = self.audio_adaptor(encoder_out, encoder_out_lens)
|
encoder_out, encoder_out_lens = self.audio_adaptor(encoder_out, encoder_out_lens)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user