cdbb8791ec13d03fd1fcf2580111db677a3ebc29,autokeras/hypermodel/block.py,ConvBlock,set_state,#ConvBlock#Any#,193

Before Change



    def set_state(self, state):
        super().set_state(state)
        self.kernel_size = state["kernel_size"]
        self.num_blocks = state["num_blocks"]
        self.separable = state["separable"]

    def build(self, hp, inputs=None):

After Change


    def build(self, hp, inputs=None):
        inputs = nest.flatten(inputs)
        if len(inputs) == 1:
            return inputs

        merge_type = self.merge_type or hp.Choice("merge_type",
                                                  ["add", "concatenate"],
                                                  default="add")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: cdbb8791ec13d03fd1fcf2580111db677a3ebc29
Time: 2019-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/block.py
Class Name: ConvBlock
Method Name: set_state


Project Name: keras-team/autokeras
Commit Name: cdbb8791ec13d03fd1fcf2580111db677a3ebc29
Time: 2019-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/hypermodel/block.py
Class Name: EmbeddingBlock
Method Name: set_state


Project Name: tomgoldstein/loss-landscape
Commit Name: 749438fd8b7ffc29e78d042473cb00fda595d937
Time: 2018-12-27
Author: tomg@cs.umd.edu
File Name: dataloader.py
Class Name:
Method Name: load_dataset