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

Method forward

fireredtts2/codec/decoder.py:138–148  ·  view source on GitHub ↗

Args: x: shape (b, c, t)

(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

136 )
137
138 def forward(self, x: torch.Tensor):
139 """
140 Args:
141 x: shape (b, c, t)
142 """
143 h = x
144 h = self.block1(h)
145 h = self.block2(h)
146 if self.in_channels != self.out_channels:
147 x = self.nin_shortcut(x)
148 return x + h
149
150 def forward_chunk(self, x: torch.Tensor, cache: torch.Tensor = None):
151 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected