MCPcopy Create free account
hub / github.com/FireRedTeam/FireRedTTS2 / forward

Method forward

fireredtts2/codec/model.py:142–148  ·  view source on GitHub ↗
(self, x: torch.Tensor, input_length: torch.Tensor)

Source from the content-addressed store, hash-verified

140 )
141
142 def forward(self, x: torch.Tensor, input_length: torch.Tensor):
143 x = self.in_proj(x)
144 x = x.transpose(1, 2)
145 res = self.up_conv(x)
146 res = res.transpose(1, 2)
147 output_length = input_length * self.stride
148 return res, output_length
149
150
151class RedCodec(nn.Module):

Callers 1

_encode_one_batchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected