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

Before Change


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

Non-data size: 4

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: idaholab/raven
Commit Name: 5ad7296f10444d96a15e34dc1b040ca1b8f947cc
Time: 2017-08-11
Author: paul.talbot@inl.gov
File Name: framework/Optimizers/Optimizer.py
Class Name: Optimizer
Method Name: updateMultilevelDepth


Project Name: albu/albumentations
Commit Name: 9942689f9846c59006c80718ee8db38e02ee2104
Time: 2019-09-27
Author: al.buslaev@gmail.com
File Name: albumentations/core/transforms_interface.py
Class Name: BasicTransform
Method Name: __call__


Project Name: dpressel/mead-baseline
Commit Name: 8eb123db00e8e65852d573eaa8dcdd6f853e7ff8
Time: 2019-06-01
Author: schoudhury@interactions.com
File Name: python/mead/tasks.py
Class Name: Task
Method Name: read_config