TensorFlow KeyError: 'teller/embedding/Variable/Read/Identity' Operation Not Found
This error occurs when you're attempting to access an operation within a TensorFlow graph that doesn't exist. The operation 'teller/embedding/Variable/Read/Identity' is expected to be present in the graph, but it's missing.
To resolve this, start by checking if the operation exists within your graph. You can print a list of all operations using this code:
import tensorflow as tf
with tf.Session() as sess:
graph_def = sess.graph.as_graph_def()
print([node.name for node in graph_def.node])
This code snippet will display all operations within your graph. Search the list for 'teller/embedding/Variable/Read/Identity' to determine if it's present.
If the operation is absent, you'll need to add it to your graph using appropriate TensorFlow operations. If the operation should have been added automatically by another TensorFlow operation, carefully review the code for that operation to understand why it's not adding the required operation to your graph.
原文地址: https://www.cveoy.top/t/topic/lGtg 著作权归作者所有。请勿转载和采集!