How to replace the input of a saved graph, e.g. a placeholder by a Dataset iterator?
问题 I have a saved Tensorflow graph that consumes input through a placeholder with a feed_dict param. sess.run(my_tensor, feed_dict={input_image: image}) Because feeding data with a Dataset Iterator is more efficient, I want to load the saved graph, replace the input_image placeholder with an Iterator and run. How can I do that? Is there a better way to do it? An answer with code example would be highly appreciated. 回答1: You can achieve that by serializing your graph and reimport it using tf