【发布时间】:2018-12-13 03:40:17
【问题描述】:
train.py:
prediction = tf.contrib.layers.fully_connected(outputs[:, -1, :],
output_dim, activation_fn=None, scope="prediction")
test.py:
prediction = graph.get_tensor_by_name("prediction:0")
从 train.py 保存图表后,我想恢复 test.py 中的预测变量,但无法正常工作。
'tf.contrib.layers.fully_connected' 没有 name 参数。只有 scope 参数。如何恢复?
【问题讨论】:
标签: python tensorflow machine-learning time-series