我在Anaconda jupyter中运行tensorflow。张量流找不到包。 python是最新版本。
这是anaconda中的程序
size_layer = 256
num_layers = 2
dimension_output = len(unique_labels)
learning_rate = 1e-4
batch_size = 32
dropout = 0.8
maxlen = 80
tf.reset_default_graph()
sess = tf.InteractiveSession()
#error here
model = Model(
size_layer,
num_layers,
dimension_output,
learning_rate,
dropout,
len(dictionary),
)
sess.run(tf.global_variables_initializer())
saver = tf.train.Saver(tf.trainable_variables())
saver.save(sess, 'bahdanau/model.ckpt')
我希望输出为“ bahdanau / model.ckpt”