in swd.py [0:0]
def toyNet(X):
# Define network architecture
with tf.variable_scope('Generator'):
net = fully_connected(X, 15, activation_fn=tf.nn.relu)
net = fully_connected(net, 15, activation_fn=tf.nn.relu)
net = fully_connected(net, 15, activation_fn=tf.nn.relu)
with tf.variable_scope('Classifier1'):
net1 = fully_connected(net, 15, activation_fn=tf.nn.relu)
net1 = fully_connected(net1, 15, activation_fn=tf.nn.relu)
net1 = fully_connected(net1, 1, activation_fn=None)
logits1 = tf.sigmoid(net1)
with tf.variable_scope('Classifier2'):
net2 = fully_connected(net, 15, activation_fn=tf.nn.relu)
net2 = fully_connected(net2, 15, activation_fn=tf.nn.relu)
net2 = fully_connected(net2, 1, activation_fn=None)
logits2 = tf.sigmoid(net2)
return logits1, logits2