eb8b70c825ef3e02818cbfa95c0f8a9ec4184275,theanolm/network.py,Network,__init__,#Network#Any#Any#Any#Any#,168

Before Change


        self.layers["X"] = self.network_input
        for layer_description in architecture.layers:
            layer_type = layer_description["type"]
            layer_name = layer_description["name"]
            inputs = [ self.layers[x] for x in layer_description["inputs"] ]
            if layer_description["output"] == "Y":
                output_size = dictionary.num_classes()
            elif layer_description["output"] == "-":
                output_size = sum([ x.output_size for x in inputs ])
            else:
                output_size = int(layer_description["output"])
            self.layers[layer_name] = create_layer(layer_type,
                                                   layer_name,
                                                   inputs,
                                                   output_size,
                                                   self,
                                                   profile=profile)
            if layer_description["output"] == "Y":
                self.output_layer = self.layers[layer_name]
        if self.output_layer is None:
            raise InputError("None of the layers in architecture description "

After Change


                    if value == "Y":
                        value = dictionary.num_classes()
                    else:
                        value = int(value)
                    layer_options["output_size"] = value
                else:
                    layer_options[variable] = value
            layer = create_layer(layer_options, self, profile=profile)
            self.layers[layer.name] = layer
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: senarvi/theanolm
Commit Name: eb8b70c825ef3e02818cbfa95c0f8a9ec4184275
Time: 2015-12-25
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Network
Method Name: __init__


Project Name: dask/distributed
Commit Name: 6efd5b6147d29ec613bd83c72cdbd6a5a45a1438
Time: 2020-10-06
Author: jacobtomlinson@users.noreply.github.com
File Name: distributed/diagnostics/nvml.py
Class Name:
Method Name: _pynvml_handles


Project Name: mozilla/TTS
Commit Name: 278c7a91b77448236af73d6942da425a5d5a2e34
Time: 2019-04-28
Author: egolge@mozilla.com
File Name: datasets/preprocess.py
Class Name:
Method Name: mozilla