b2771d13b0f9146cde43af00f5a5156f56614436,keras/engine/base_layer.py,Layer,__init__,#Layer#,94

Before Change


            if "batch_input_shape" in kwargs:
                batch_input_shape = tuple(kwargs["batch_input_shape"])
            elif "input_shape" in kwargs:
                if "batch_size" in kwargs:
                    batch_size = kwargs["batch_size"]
                else:
                    batch_size = None
                batch_input_shape = (
                    batch_size,) + tuple(kwargs["input_shape"])
            self.batch_input_shape = batch_input_shape

After Change


            if "batch_input_shape" in kwargs:
                batch_input_shape = tuple(kwargs["batch_input_shape"])
            elif "input_shape" in kwargs:
                batch_size = kwargs.get("batch_size")
                batch_input_shape = (
                    batch_size,) + tuple(kwargs["input_shape"])
            self.batch_input_shape = batch_input_shape
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: b2771d13b0f9146cde43af00f5a5156f56614436
Time: 2019-04-07
Author: abhai.dilip@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: __init__


Project Name: tryolabs/luminoth
Commit Name: ab1443ef8b4fa03d291fb4c44b891e6f6d7a00bf
Time: 2018-03-06
Author: agustin@tryolabs.com
File Name: luminoth/utils/homedir.py
Class Name:
Method Name: get_luminoth_home


Project Name: keras-team/keras
Commit Name: b2771d13b0f9146cde43af00f5a5156f56614436
Time: 2019-04-07
Author: abhai.dilip@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: __init__