aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-01-27 05:18:28 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-27 05:27:54 -0800
commit08f36100a397c69813f6e096e91cb22dd6ede39d (patch)
tree7c17b17517f9e19ff72d678841889dc2dc700659
parent3e0fd8af4a21bdc61602a1954ec1afaa9835a809 (diff)
Update generated Python Op docs.
Change: 145784993
-rw-r--r--tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md7
-rw-r--r--tensorflow/g3doc/api_docs/python/test.md7
2 files changed, 14 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md
index e9e8a2684c..bcfd97f616 100644
--- a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md
+++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard2/tf.test.TestCase.md
@@ -1331,6 +1331,13 @@ Returns a TensorFlow Session for use in executing tests.
This method should be used for all functional tests.
+This method behaves different than session.Session: for performance reasons
+`test_session` will by default (if `graph` is None) reuse the same session
+across tests. This means you may want to either call the function
+`reset_default_graph()` before tests, or if creating an explicit new graph,
+pass it here (simply setting it with `as_default()` won't do it), which will
+trigger the creation of a new session.
+
Use the `use_gpu` and `force_gpu` options to control where ops are run. If
`force_gpu` is True, all ops are pinned to `/gpu:0`. Otherwise, if `use_gpu`
is True, TensorFlow tries to run as many ops on the GPU as possible. If both
diff --git a/tensorflow/g3doc/api_docs/python/test.md b/tensorflow/g3doc/api_docs/python/test.md
index c95f971889..82ca4b8371 100644
--- a/tensorflow/g3doc/api_docs/python/test.md
+++ b/tensorflow/g3doc/api_docs/python/test.md
@@ -1371,6 +1371,13 @@ Returns a TensorFlow Session for use in executing tests.
This method should be used for all functional tests.
+This method behaves different than session.Session: for performance reasons
+`test_session` will by default (if `graph` is None) reuse the same session
+across tests. This means you may want to either call the function
+`reset_default_graph()` before tests, or if creating an explicit new graph,
+pass it here (simply setting it with `as_default()` won't do it), which will
+trigger the creation of a new session.
+
Use the `use_gpu` and `force_gpu` options to control where ops are run. If
`force_gpu` is True, all ops are pinned to `/gpu:0`. Otherwise, if `use_gpu`
is True, TensorFlow tries to run as many ops on the GPU as possible. If both