18857c333e04b6815ec1f2ab9fcec1c0a0ae7bfd,cube/models/vocoder.py,BeeCoder,__init__,#BeeCoder#,25

Before Change



        self.mlp = [hidden_w, hidden_b]

        self.output_w = self.model.add_parameters((2, input_size))
        self.output_b = self.model.add_parameters((2))

        self.trainer = dy.AdamTrainer(self.model, alpha=params.learning_rate)
        self.dio = DatasetIO()

After Change



        self.sparse = False
        if model is None:
            self.model = dy.Model()
        else:
            self.model = model
        input_size = self.UPSAMPLE_COUNT + self.params.mgc_order

        self.upsample_w = []
        self.upsample_b = []
        for ii in range(self.UPSAMPLE_COUNT):
            self.upsample_w.append(self.model.add_parameters((self.params.mgc_order, self.params.mgc_order)))
            self.upsample_b.append(self.model.add_parameters((self.params.mgc_order)))

        hidden_w = []
        hidden_b = []
        for layer_size in self.HIDDEN_SIZE:
            hidden_w.append(self.model.add_parameters((layer_size, input_size)))
            hidden_b.append(self.model.add_parameters((layer_size)))
            input_size = layer_size

        // self.networks.append([hidden_w, hidden_b])

        self.mlp = [hidden_w, hidden_b]

        self.mean_w = self.model.add_parameters((1, input_size))
        self.mean_b = self.model.add_parameters((1))
        self.stdev_w = self.model.add_parameters((1, input_size))
        self.stdev_b = self.model.add_parameters((1))

        self.trainer = dy.AdamTrainer(self.model, alpha=params.learning_rate)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: tiberiu44/TTS-Cube
Commit Name: 18857c333e04b6815ec1f2ab9fcec1c0a0ae7bfd
Time: 2018-11-01
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: __init__


Project Name: tiberiu44/TTS-Cube
Commit Name: 18857c333e04b6815ec1f2ab9fcec1c0a0ae7bfd
Time: 2018-11-01
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: __init__


Project Name: tiberiu44/TTS-Cube
Commit Name: 28e74f1163eda466a7728aa728919bf9dc8a0f15
Time: 2018-11-01
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: __init__