session.py-------"""A client interface for TensorFlow."""
object->SessionInterface->BaseSession->Session
object->SessionInterface->BaseSession->InteractiveSession
Session和InteractiveSession里没有run()方法,而是调用父类的run()
BaseSession中run方法:
def run(self, fetches, feed_dict=None, options=None, run_metadata=None):
"""Runs operations and evaluates tensors in `fetches`.
This method runs one "step" of TensorFlow computation, by
running the necessary graph fragment to execute every `Operation`
and evaluate every `Tensor` in `fetches`, substituting the values in
`feed_dict` for the corresponding input values.
The `fetches` argument may be a single graph element, or an arbitrarily
nested list, tuple, namedtuple, or dict containing graph elements at its
leaves. A graph element can be one of the following types: