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

Before Change


        return state

    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"]

After Change


        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: 2

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: home-assistant/home-assistant
Commit Name: 09693bf16cdd04bf04f0c61519d42428276a6f5c
Time: 2016-04-17
Author: bradsk88@gmail.com
File Name: homeassistant/components/light/wink.py
Class Name: WinkLight
Method Name: turn_on