x = inputs
for i, group_cfg in enumerate(arch):
with tf.variable_scope("block-%d" % i):
for j, filters in enumerate(group_cfg["conv"]):
x = cls.block(x, filters, name="module-%d" % j, **kwargs)
if "max_pooling" in group_cfg:
x = conv_block(x, layout="p", name="max-pooling", **kwargs)