【发布时间】:2018-05-03 14:25:37
【问题描述】:
我想在训练后恢复一个 tensorflow 模型。我知道我可以使用tf.train.Saver,但问题在于恢复,因为我对get_tensor_by_name 的名称感到困惑。有谁能够帮我?
这是我的图表:
x_hat = tf.placeholder(tf.float32, shape=[None, dim_img], name='input_img')
x = tf.placeholder(tf.float32, shape=[None, dim_img], name='target_img')
# dropout
keep_prob = tf.placeholder(tf.float32, name='keep_prob')
# input for PMLR
z_in = tf.placeholder(tf.float32, shape=[None, dim_z], name='latent_variable')
# network architecture
y, z, loss, neg_marginal_likelihood, KL_divergence = vae.autoencoder(x_hat, x, dim_img, dim_z, n_hidden,
keep_prob)
【问题讨论】:
标签: python tensorflow