allow argument passthru to normalizer in _mr_make_norm

This commit is contained in:
Connor Olding 2017-08-05 10:40:39 +00:00
parent 957ee86e20
commit de5af4f7f4

6
onn.py
View file

@ -806,19 +806,19 @@ class DumbLearner(AnnealingLearner):
# Components {{{1
def _mr_make_norm(norm):
def _mr_make_norm(norm, *args, **kwargs):
def _mr_norm(y, width, depth, block, multi, activation, style, FC, d):
skip = y
merger = Sum()
skip.feed(merger)
z_start = skip
z_start = z_start.feed(norm())
z_start = z_start.feed(norm(*args, **kwargs))
z_start = z_start.feed(activation())
for _ in range(multi):
z = z_start
for j in range(block):
if j > 0:
z = z.feed(norm())
z = z.feed(norm(*args, **kwargs))
z = z.feed(activation())
z = z.feed(FC())
z.feed(merger)