-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to tensorflow 1.4 #20
Comments
Yes, You change this section
|
@mkj676 I have stuck with 3rd step. How can I set "reuse = AUTO_REUSE"? |
Managed to make it work by setting with tf.variable_scope('', reuse=tf.AUTO_REUSE):
# optimizer for encoder + generator
self.EG_optimizer = tf.train.AdamOptimizer(
learning_rate=EG_learning_rate,
beta1=beta1
).minimize(
loss=self.loss_EG,
global_step=self.EG_global_step,
var_list=self.E_variables + self.G_variables
)
# optimizer for discriminator on z
self.D_z_optimizer = tf.train.AdamOptimizer(
learning_rate=EG_learning_rate,
beta1=beta1
).minimize(
loss=self.loss_Dz,
var_list=self.D_z_variables
)
# optimizer for discriminator on image
self.D_img_optimizer = tf.train.AdamOptimizer(
learning_rate=EG_learning_rate,
beta1=beta1
).minimize(
loss=self.loss_Di,
var_list=self.D_img_variables
) |
@AidasK ps. flask means virtualenv |
Problem no 1 and 2 is not clear. where we change or which file we required to changes? |
Can this code be updated according to tensorflow 1.4?
The text was updated successfully, but these errors were encountered: