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

Before Change


                    layer_dict[k] = regularizers.get(vname, v)

        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


def print_layer_shapes(model, input_shapes):

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

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: microsoft/nni
Commit Name: 5c96b82c3c86dde8250aa371aff958872a62008e
Time: 2019-12-02
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: src/sdk/pynni/nni/nas/pytorch/pdarts/mutator.py
Class Name: PdartsMutator
Method Name: drop_paths


Project Name: keras-team/keras
Commit Name: be24159959672c32abb31697e721d96ae6ffaf97
Time: 2016-02-27
Author: ipod825@gmail.com
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: fit