16474aee0c575e615c78d32f2a170c3d7f8f0082,autokeras/graph.py,Graph,produce_model,#Graph#,75

Before Change


    def produce_model(self):
        input_shape = get_int_tuple(self.model.inputs[0].shape[1:])

        input_tensor = Input(shape=tuple(input_shape))
        input_id = self.node_to_id[self.model.inputs[0]]
        output_id = self.node_to_id[self.model.outputs[0]]

        id_to_tensor = {input_id: input_tensor}

After Change


            for u, edge_id in self.reverse_adj_list[v]:
                layer = self.edge_list[edge_id]

                if isinstance(layer, WeightedAdd):
                    edge_input_tensor = list(map(lambda x: id_to_tensor[x], self.edge_id_to_input_ids[edge_id]))
                else:
                    edge_input_tensor = id_to_tensor[u]

                if edge_id in self.old_edge_ids:
                    new_layer = copy_layer(layer)
                else:
                    new_layer = layer
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 16474aee0c575e615c78d32f2a170c3d7f8f0082
Time: 2017-12-30
Author: jhfjhfj1@gmail.com
File Name: autokeras/graph.py
Class Name: Graph
Method Name: produce_model


Project Name: bonlime/keras-deeplab-v3-plus
Commit Name: 64bc7a86422c3ff27c4c7e96c1a640d1ec4eb438
Time: 2019-03-19
Author: bonlimezak@gmail.com
File Name: .ipynb_checkpoints/model-checkpoint.py
Class Name:
Method Name: Deeplabv3


Project Name: keras-team/autokeras
Commit Name: 16474aee0c575e615c78d32f2a170c3d7f8f0082
Time: 2017-12-30
Author: jhfjhfj1@gmail.com
File Name: autokeras/graph.py
Class Name: Graph
Method Name: produce_model