show_and_tell.tensorflow
show_and_tell.tensorflow copied to clipboard
error when I run the test_tf
ImportError: This module is deprecated. Use tf.nn.rnn_cell instead.
Use following self.lstm = tf.nn.rnn_cell.BasicLSTMCell(dim_hidden)
This will give warning but code will run
I am having an error as well, but is this:
File "caption.py", line 1, in
Could someone help me? I remember i have ran this code some days ago, but now I just cannot make it happens.
@mabirck Did you get the solution? I have the exactly same error with you.
Me too
I get the error when I run test_tf(). Is it caused by the version of tf?
File "zzq_test.py", line 387, in test_tf fc7 = sess.run(graph.get_tensor_by_name("import/fc7_relu:0"), feed_dict={images:image_val}) File "/home/zzq/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2561, in get_tensor_by_name return self.as_graph_element(name, allow_tensor=True, allow_operation=False) File "/home/zzq/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2412, in as_graph_element return self._as_graph_element_locked(obj, allow_tensor, allow_operation) File "/home/zzq/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2454, in _as_graph_element_locked "graph." % (repr(name), repr(op_name))) KeyError: "The name 'import/fc7_relu:0' refers to a Tensor which does not exist. The operation, 'import/fc7_relu', does not exist in the graph."