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

Method forward

fireredtts2/codec/decoder.py:88–91  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

86 self.causal_padding = (kernel_size - 1, 0)
87
88 def forward(self, x: torch.Tensor):
89 x = F.pad(x, self.causal_padding)
90 x = super(CausalConv1d, self).forward(x)
91 return x
92
93 def forward_chunk(self, x: torch.Tensor, cnn_cache: torch.Tensor = None):
94 if cnn_cache is None:

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected