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)
| 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. |