Skip to content

confuse about the define of placeholder #12

@meeio

Description

@meeio

when I change the position of placeholder of x, it goes wrong
the original is:

self.z = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="z")

with tf.variable_scope('G'):
 ……

self.x = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="x")

with tf.variable_scope('D'):
 ……

I change to:

self.z = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="z")
self.x = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="x")

with tf.variable_scope('G'):
 ……

with tf.variable_scope('D'):
 ……

the training result is completely wrong. I am so confused, can anyone tell me why this change will effect the result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions