diff options
Diffstat (limited to 'tensorflow/python/client/session.py')
-rw-r--r-- | tensorflow/python/client/session.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/python/client/session.py b/tensorflow/python/client/session.py index cc31555690..038dc4147a 100644 --- a/tensorflow/python/client/session.py +++ b/tensorflow/python/client/session.py @@ -711,14 +711,14 @@ class BaseSession(SessionInterface): # v is the numpy array [10, 20] # 'fetches' can be a list. v = session.run([a, b]) - # v a Python list with 2 numpy arrays: the numpy array [10, 20] and the + # v is a Python list with 2 numpy arrays: the 1-D array [10, 20] and the # 1-D array [1.0, 2.0] # 'fetches' can be arbitrary lists, tuples, namedtuple, dicts: MyData = collections.namedtuple('MyData', ['a', 'b']) v = session.run({'k1': MyData(a, b), 'k2': [b, a]}) # v is a dict with - # v['k1'] is a MyData namedtuple with 'a' the numpy array [10, 20] and - # 'b' the numpy array [1.0, 2.0] + # v['k1'] is a MyData namedtuple with 'a' (the numpy array [10, 20]) and + # 'b' (the numpy array [1.0, 2.0]) # v['k2'] is a list with the numpy array [1.0, 2.0] and the numpy array # [10, 20]. ``` |