print("Discriminator pyramid layer:", net)
net = tf.reshape(net, [config["batch_size"]*2, -1])
net = batch_norm(config["batch_size"]*2, name="d_expand_bn_end_"+str(i))(net)
net = activation(net)
net = linear(net, int(1024), scope="d_fc_end1")
net = batch_norm(config["batch_size"]*2, name="d_bn_end1")(net)
net = activation(net)
return net