e4a5dbe7e29d64c9b095d134f0ca2a5543353dda,autokeras/hypermodel/graph.py,GraphHyperModel,hyper_build,#GraphHyperModel#Any#,405

Before Change



    def hyper_build(self, hp):
        Build a GraphHyperModel with no HyperBlock but only Block.
        inputs = copy.copy(self.inputs)
        old_node_to_new = {}
        for input_node, old_input_node in zip(inputs, self.inputs):
            input_node.clear_edges()
            old_node_to_new[old_input_node] = input_node

After Change


        inputs = []
        old_node_to_new = {}
        for old_input_node in self.inputs:
            input_node = copy(old_input_node)
            inputs.append(input_node)
            old_node_to_new[old_input_node] = input_node
        for old_block in self._blocks:
            inputs = [old_node_to_new[input_node]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: e4a5dbe7e29d64c9b095d134f0ca2a5543353dda
Time: 2019-10-20
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/graph.py
Class Name: GraphHyperModel
Method Name: hyper_build


Project Name: ray-project/ray
Commit Name: ed3fdd2c0b5be7dcc01c4a9998c111abe3225224
Time: 2020-08-25
Author: simon.mo@hey.com
File Name: python/ray/serve/router.py
Class Name: Query
Method Name: ray_serialize


Project Name: NifTK/NiftyNet
Commit Name: fea086fcf4532d6760d8cfb3e830434ccc14a846
Time: 2017-09-04
Author: d.shakir@ucl.ac.uk
File Name: doc/source/conf.py
Class Name:
Method Name: generate_apidocs