From 3961abed9560cd852fff4add393b451483bbc3af Mon Sep 17 00:00:00 2001 From: Vijay Vasudevan Date: Wed, 11 Nov 2015 11:52:11 -0800 Subject: 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 --- tensorflow/g3doc/get_started/basic_usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tensorflow/g3doc/get_started/basic_usage.md') 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 -- cgit v1.2.3