b2a992e08f9a045fa51046d795d7004482a05140,keras/backend/tensorflow_backend.py,,bias_add,#Any#Any#Any#,3053
Before Change
if data_format == "channels_first":
x += reshape(bias, (1, int_shape(bias)[0], 1, 1))
elif data_format == "channels_last":
x += reshape(bias, (1, 1, 1, int_shape(bias)[0]))
elif ndim(x) == 3:
if data_format == "channels_first":
x += reshape(bias, (1, int_shape(bias)[0], 1))
elif data_format == "channels_last":
After Change
elif data_format == "channels_last":
x += reshape(bias, (1, 1, int_shape(bias)[0]))
else:
x = tf.nn.bias_add(x, bias)
return x
// RANDOMNESS
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: b2a992e08f9a045fa51046d795d7004482a05140
Time: 2017-03-10
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: bias_add
Project Name: deepmind/sonnet
Commit Name: b7ded90b468ea1e59da6c8f643cf76460d872322
Time: 2017-08-14
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv2DTranspose
Method Name: _build
Project Name: deepmind/sonnet
Commit Name: b7ded90b468ea1e59da6c8f643cf76460d872322
Time: 2017-08-14
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv2D
Method Name: _build