b9927f30cb9c92040c30d0fe8c735d8baea167b2,tensornets/layers.py,,gconvbn,#,59
Before Change
g = f // c
x = tf.reshape(x, tf.concat([tf.shape(x)[:-1],
tf.constant([g, c, c])], axis=0))
x = tf.reduce_sum(x, axis=-2 )
x = reshape(x, tf.concat([tf.shape(x)[:-2],
tf.constant([f])], axis=0), name="gconv")
return batch_norm(x)
def sconvbn(*args, **kwargs):
After Change
c = args[-1]
f = x.shape[-1].value // c
g = f // c
kernel = np.zeros((1, 1, f * c, f), np.float32)
for i in range(f):
start = (i // c) * c * c + i % c
end = start + c * c
kernel[:, :, start:end:c, i] = 1.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: taehoonlee/tensornets
Commit Name: b9927f30cb9c92040c30d0fe8c735d8baea167b2
Time: 2019-03-13
Author: me@taehoonlee.com
File Name: tensornets/layers.py
Class Name:
Method Name: gconvbn
Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 9cf7514b2e13eba47d78e2965220aabe6804d183
Time: 2020-06-07
Author: martin.robertandrew@gmail.com
File Name: pypfopt/black_litterman.py
Class Name: BlackLittermanModel
Method Name: _parse_views
Project Name: scikit-image/scikit-image
Commit Name: f8d9a6c144ef84bad2478a4ba4eedb1c559274e0
Time: 2020-11-11
Author: rfezzani@gmail.com
File Name: skimage/_shared/coord.py
Class Name:
Method Name: ensure_spacing