print("[fully connected discriminator] creating FC layer from ", net)
net = ops.linear(net, 512)//config.features or ops.shape(net)[-1])
net = activation(net)
net = ops.linear(net, 512)//config.features or ops.shape(net)[-1])
//net = ops.linear(net, config.features or ops.shape(net)[-1])
if final_activation:
net = final_activation(net)
After Change
print("[fully connected discriminator] creating FC layer from ", net)
net = ops.linear(net, config.features or ops.shape(net)[-1])
for i in range(config.layers or 1):
net = self.layer_regularizer(net)
net = activation(net)
net = ops.linear(net, config.features or ops.shape(net)[-1])
if final_activation:
net = self.layer_regularizer(net)
net = final_activation(net)
self.sample = net