b9927f30cb9c92040c30d0fe8c735d8baea167b2,tensornets/layers.py,,gconvbn,#,59
Before Change
c = args[-1]
f = x.shape[-1].value // c
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)
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: uber/ludwig
Commit Name: 15bc4baff9c2dfa2e42947a417e45a159ab50dad
Time: 2020-05-14
Author: w4nderlust@gmail.com
File Name: ludwig/models/modules/embedding_modules.py
Class Name: EmbedSparse
Method Name: __call__
Project Name: uber/ludwig
Commit Name: 66866187ee32e7ec2f1e93cbd39a21a0afd1ccd3
Time: 2020-05-09
Author: w4nderlust@gmail.com
File Name: ludwig/models/modules/embedding_modules.py
Class Name: EmbedSparse
Method Name: call