e0f6dd06cc61043662ff9beee4a4996d434e45f5,innvestigate/tools/pattern.py,PatternComputer,__init__,#PatternComputer#Any#Any#Any#Any#,205

Before Change


                if pinstance.has_pattern() is False:
                    continue
                self._pattern_instances[pattern_type].append(pinstance)
                batch_stats = iutils.listify(pinstance.get_stats_from_batch())

                n = len(computer_outputs)
                self._work_sequence.append((n, n+len(batch_stats), pinstance))
                computer_outputs += iutils.listify(batch_stats)

After Change


                self._pattern_instances[pattern_type].append(pinstance)
                dummy_output = pinstance.get_stats_from_batch()
                // Broadcast dummy_output to right shape.
                computer_outputs += iutils.listify(broadcast(dummy_output))

        // initialize the keras outputs
        self._n_computer_outputs = len(computer_outputs)
        if self.compute_layers_in_parallel is True:
            self._computers = [
                keras.models.Model(inputs=model.inputs,
                                   outputs=computer_outputs)
            ]
        else:
            self._computers = [
                keras.models.Model(inputs=model.inputs,
                                   outputs=computer_output)
                for computer_output in computer_outputs
            ]

        // distribute computation on more gpus
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: albermax/innvestigate
Commit Name: e0f6dd06cc61043662ff9beee4a4996d434e45f5
Time: 2018-02-20
Author: alber.maximilian@gmail.com
File Name: innvestigate/tools/pattern.py
Class Name: PatternComputer
Method Name: __init__


Project Name: J535D165/recordlinkage
Commit Name: 74a39180006c16cd748ee8266169e37677f6a33d
Time: 2018-02-28
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/base.py
Class Name: BaseCompareFeature
Method Name: compute


Project Name: albermax/innvestigate
Commit Name: 0e2c1a93bec236800c1d0d14aab4433d70f2d7b7
Time: 2018-02-15
Author: alber.maximilian@gmail.com
File Name: innvestigate/analyzer/base.py
Class Name: AnalyzerBase
Method Name: __init__


Project Name: tyarkoni/pliers
Commit Name: 0c6a56daa4d35b0fc059a3882a152b99facbc743
Time: 2017-01-15
Author: tyarkoni@gmail.com
File Name: pliers/graph.py
Class Name: Node
Method Name: collect