d40656e5799dfd22e96b8bab217638b2934a6894,keras/backend/theano_backend.py,,pool2d,#Any#Any#Any#Any#Any#Any#,2345
Before Change
def pool2d(x, pool_size, strides=(1, 1), padding="valid",
data_format=None, pool_mode="max"):
if data_format is None:
data_format = image_data_format()
if data_format not in {"channels_first", "channels_last"}:
raise ValueError("Unknown data_format:", data_format)
assert pool_size[0] >= 1 and pool_size[1] >= 1
if padding == "same":
w_pad = pool_size[0] - 2 if pool_size[0] > 2 and pool_size[0] % 2 == 1 else pool_size[0] - 1
After Change
def pool2d(x, pool_size, strides=(1, 1), padding="valid",
data_format=None, pool_mode="max"):
data_format = normalize_data_format(data_format)
assert pool_size[0] >= 1 and pool_size[1] >= 1
if padding == "same":
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 11
Instances
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: pool2d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: pool3d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: depthwise_conv2d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: conv1d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: pool2d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: conv2d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: separable_conv1d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: conv3d
Project Name: keras-team/keras
Commit Name: d40656e5799dfd22e96b8bab217638b2934a6894
Time: 2018-07-19
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: separable_conv2d