c4579a9c43a5d9f0401eed4da6ca03315685ac2b,keras/backend/theano_backend.py,,_old_batch_normalization,#Any#Any#Any#Any#Any#Any#,473
Before Change
mean = mean.dimshuffle(shuffle_pattern)
var = var.dimshuffle(shuffle_pattern)
beta = beta.dimshuffle(shuffle_pattern)
gamma = gamma.dimshuffle(shuffle_pattern)
normed = theano.sandbox.cuda.dnn.dnn_batch_normalization_test(x, gamma, beta, mean, var,
"spatial", epsilon)
if axis != 1:
normed = normed.dimshuffle(shuffle_pattern)
return normed
except AttributeError:
pass
except ValueError:
pass
After Change
shuffle_pattern = list(range(ndim))
shuffle_pattern[1] = shuffle_pattern[axis]
shuffle_pattern[axis] = 1
return theano.sandbox.cuda.dnn.dnn_batch_normalization_test(
x.dimshuffle(shuffle_pattern),
gamma.dimshuffle(shuffle_pattern),
beta.dimshuffle(shuffle_pattern),
mean.dimshuffle(shuffle_pattern),
var.dimshuffle(shuffle_pattern),
"spatial", epsilon).dimshuffle(shuffle_pattern)
else:
return theano.sandbox.cuda.dnn.dnn_batch_normalization_test(
x, gamma, beta, mean, var, "spatial", epsilon)
except AttributeError:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: keras-team/keras
Commit Name: c4579a9c43a5d9f0401eed4da6ca03315685ac2b
Time: 2016-12-14
Author: gvtulder@users.noreply.github.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: _old_batch_normalization
Project Name: keras-team/keras
Commit Name: de8a0133f01b4e9204eb81eb85ff4f9684aeb98f
Time: 2016-02-02
Author: francois.chollet@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: repeat
Project Name: rodluger/starry
Commit Name: d5b179c50c764bcd37aa5348761e272170f9015f
Time: 2019-10-01
Author: rodluger@gmail.com
File Name: starry/ops/ops.py
Class Name: OpsReflected
Method Name: render
Project Name: Theano/Theano
Commit Name: c1df889db130ab78bd5582b633dc59b141be1043
Time: 2016-10-11
Author: gvtulder@gmail.com
File Name: theano/tensor/nnet/tests/test_abstract_conv.py
Class Name:
Method Name: conv3d_corr