15a3a1f1ce2a7babf62c61f73709c074249ed840,keras/utils/layer_utils.py,,container_from_config,#Any#,18

Before Change



        base_layer = get_layer(name, layer_dict)
        if hasParams:
            shaped_params = []
            for param in params:
                data = np.asarray(param.get("data"))
                shape = tuple(param.get("shape"))
                shaped_params.append(data.reshape(shape))
            base_layer.set_weights(shaped_params)
        return base_layer

After Change




def container_from_config(original_layer_dict):
    layer_dict = copy.deepcopy(original_layer_dict)
    name = layer_dict.get("name")

    if name == "Merge":
        mode = layer_dict.get("mode")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: 15a3a1f1ce2a7babf62c61f73709c074249ed840
Time: 2015-07-30
Author: francois.chollet@gmail.com
File Name: keras/utils/layer_utils.py
Class Name:
Method Name: container_from_config


Project Name: jhfjhfj1/autokeras
Commit Name: 5b3af9ff43bc61f8034f1202a2b57f21c8ee3771
Time: 2018-08-01
Author: jin@tamu.edu
File Name: autokeras/graph.py
Class Name: Graph
Method Name: _insert_new_layers