MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / forward

Method forward

modules/fastspeech/tts_modules.py:133–141  ·  view source on GitHub ↗

Calculate forward propagation. Args: xs (Tensor): Batch of input sequences (B, Tmax, idim). x_masks (ByteTensor, optional): Batch of masks indicating padded part (B, Tmax). Returns: Tensor: Batch of predicted durations in log domain (B, Tmax).

(self, xs, x_masks=None)

Source from the content-addressed store, hash-verified

131 return dur
132
133 def forward(self, xs, x_masks=None):
134 """Calculate forward propagation.
135 Args:
136 xs (Tensor): Batch of input sequences (B, Tmax, idim).
137 x_masks (ByteTensor, optional): Batch of masks indicating padded part (B, Tmax).
138 Returns:
139 Tensor: Batch of predicted durations in log domain (B, Tmax).
140 """
141 return self._forward(xs, x_masks, False)
142
143 def inference(self, xs, x_masks=None):
144 """Inference duration.

Callers

nothing calls this directly

Calls 1

_forwardMethod · 0.95

Tested by

no test coverage detected