2c6ce0ebfa9537246878e8fb9144e0c879fca17d,cube/models/vocoder.py,BeeCoder,_predict_one,#BeeCoder#Any#Any#Any#,97

Before Change


                b = self.layer_b[l_idx][idx]
                hidden = dy.tanh(w.expr(update=True) * hidden + b.expr(update=True))

            output_hidden.append(hidden)

        output = []
        for w, b, hid in zip(self.softmax_w, self.softmax_b, output_hidden):
            logits = w.expr(update=True) * hid + b.expr(update=True)

After Change



    def _predict_one(self, mgc, last_fft=None, runtime=True):
        if last_fft is None:
            last_fft_real = np.zeros(self.FFT_SIZE)
            last_fft_imag = np.zeros(self.FFT_SIZE)
        else:
            last_fft_real = np.real(last_fft)
            last_fft_imag = np.imag(last_fft)

        hidden = dy.concatenate([dy.inputVector(mgc), dy.inputVector(last_fft_real), dy.inputVector(last_fft_imag)])

        for w, b in zip(self.hidden_w, self.hidden_b):
            hidden = dy.tanh(w.expr(update=True) * hidden + b.expr(update=True))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tiberiu44/TTS-Cube
Commit Name: 2c6ce0ebfa9537246878e8fb9144e0c879fca17d
Time: 2018-10-22
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: _predict_one


Project Name: tiberiu44/TTS-Cube
Commit Name: 1e15171f195d8094055eb8f460953fd6a840d9aa
Time: 2018-10-28
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: learn


Project Name: tiberiu44/TTS-Cube
Commit Name: 9cf2bcdb24f23a17ec11e69b8885851771dfd3d8
Time: 2018-10-25
Author: boros@adobe.com
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: learn