我们都知道feed_dict的作用是给使用placeholder创建出来的tensor赋值
tf.Session.run(fetches, feed_dict=None)
Runs the operations and evaluates the tensors in fetches
.
Args:
fetches
: A single graph element, or a list of graph elements (described above).feed_dict
: A dictionary that maps graph elements to values (described above).
Returns:
Either a single value if fetches
is a single graph element, or a list of values if fetches
is a list (described above).