99773d6efd4c081424bdbc3ee9871cdf3e1bdb5c,autokeras/graph.py,Graph,to_concat_skip_model,#Graph#Any#Any#,102

Before Change


        new_node_id = self.node_to_id[0]
        old_node_id = self.adj_list[output_id][0][0]
        layer = Concatenate()
        layer.build([get_int_tuple(end.output_shape), get_int_tuple(start.output_shape)])
        self._add_edge(layer, new_node_id, old_node_id, False)
        self._add_edge(layer, input_id, old_node_id, False)
        self._redirect_edge(output_id, old_node_id, new_node_id)

After Change


        new_node_id = self.node_to_id["a"]
        layer = Concatenate()
        left_input_shape = get_int_tuple(end.output_shape)
        right_input_shape = np.concatenate((left_input_shape[:-1], get_int_tuple(start.output_shape[-1:])))
        layer.build([left_input_shape, right_input_shape])

        relu_output_id = self.adj_list[relu_input_id][0][0]
        self._redirect_edge(relu_input_id, relu_output_id, new_node_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: 99773d6efd4c081424bdbc3ee9871cdf3e1bdb5c
Time: 2018-01-05
Author: jhfjhfj1@gmail.com
File Name: autokeras/graph.py
Class Name: Graph
Method Name: to_concat_skip_model


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