diff options
author | Vijay Vasudevan <vrv@google.com> | 2015-11-11 11:52:11 -0800 |
---|---|---|
committer | Vijay Vasudevan <vrv@google.com> | 2015-11-11 11:52:11 -0800 |
commit | 3961abed9560cd852fff4add393b451483bbc3af (patch) | |
tree | 57b7d3180ff4db6f6c8c5897dec252b1c2b6380d /tensorflow/g3doc/get_started/basic_usage.md | |
parent | 9a00a61aa4ae59339b14d29650a591732901c264 (diff) |
Upstream a number of changes to git.
Changes:
- Updates to README / os_setup for common installation issues
by ebrevdo, vrv, wicke, anelia, dga
- Add a test for backwards compatibility checks by Josh
- Simplifications to tiling/padding of scalars by bsteiner
- Improve listing of devices when no devices are known by Matthieu
Base CL: 107607137
Diffstat (limited to 'tensorflow/g3doc/get_started/basic_usage.md')
-rw-r--r-- | tensorflow/g3doc/get_started/basic_usage.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/g3doc/get_started/basic_usage.md b/tensorflow/g3doc/get_started/basic_usage.md index df4f769983..3799fc2ffc 100644 --- a/tensorflow/g3doc/get_started/basic_usage.md +++ b/tensorflow/g3doc/get_started/basic_usage.md @@ -239,7 +239,7 @@ training graph repeatedly. To fetch the outputs of operations, execute the graph with a `run()` call on the `Session` object and pass in the tensors to retrieve. In the previous -example we fetched the single node `var`, but you can also fetch multiple +example we fetched the single node `state`, but you can also fetch multiple tensors: ```python @@ -249,7 +249,7 @@ input3 = tf.constant(5.0) intermed = tf.add(input2, input3) mul = tf.mul(input1, intermed) -with tf.Session(): +with tf.Session() as sess: result = sess.run([mul, intermed]) print result |