May 2018
Intermediate to advanced
576 pages
14h 42m
English
This example can be considered a variant of the previous one because it uses the same dataset, generator, and discriminator. The only main difference is that in this case, the discriminator (together with its variable scope) has been renamed critic():
import tensorflow as tfdef critic(x, is_training=True, reuse_variables=True): with tf.variable_scope('critic', reuse=reuse_variables):...
At this point, we can step directly to the creation of the Graph containing all of the placeholders, operations, and loss functions:
import tensorflow as tfgraph = tf.Graph()with graph.as_default(): input_x = tf.placeholder(tf.float32, shape=(None, width, height, 1)) input_z = tf.placeholder(tf.float32, shape=(None, code_length)) ...
Read now
Unlock full access