f2105ccdf8e18f2270c45068c6d1bec7338b3825,models/streaming_model.py,StreamingSpeechModel,initial_state,#StreamingSpeechModel#,29

Before Change


        self.ops = [model.probabilities, model.state]

    def initial_state(self):
        rnn_state = self.model.initial_state.eval(session=self.session)
        return SpeechModelState(rnn_state)

    def propagate_packet(self, packet, sample_rate, state):
        model = self.model

After Change


        self.ops = [model.probabilities, model.state]

    def initial_state(self):
        rnn_state = (i.eval(session=self.session)
                        for i in self.model.initial_state)
        return SpeechModelState(rnn_state)

    def propagate_packet(self, packet, sample_rate, state):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: mindorii/kws
Commit Name: f2105ccdf8e18f2270c45068c6d1bec7338b3825
Time: 2017-12-15
Author: awni.hannun@gmail.com
File Name: models/streaming_model.py
Class Name: StreamingSpeechModel
Method Name: initial_state


Project Name: anishathalye/neural-style
Commit Name: 4ff41aad9a23f4c5160648bb930606175cd932ed
Time: 2015-12-03
Author: me@anishathalye.com
File Name: stylize.py
Class Name:
Method Name: stylize


Project Name: masa-su/pixyz
Commit Name: c9a2beba5cfed8be10fff48493d740076b9388f1
Time: 2019-10-23
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/losses/losses.py
Class Name: Expectation
Method Name: _get_eval


Project Name: Cadene/bootstrap.pytorch
Commit Name: 5596783838477f6e4c099d94a715f18fcc8a1687
Time: 2018-07-24
Author: rcadene@lnode-au16-28.cm.cluster
File Name: bootstrap/run.py
Class Name:
Method Name: run


Project Name: jakeret/tf_unet
Commit Name: ce2ff4b47c40fbb29ed297965a8ec607d59b116d
Time: 2017-09-21
Author: joel.akeret@gmail.com
File Name: tf_unet/unet.py
Class Name: Trainer
Method Name: train