diff options
Diffstat (limited to 'tensorflow/examples')
-rw-r--r-- | tensorflow/examples/autograph/integration_tests/errors_test.py | 4 | ||||
-rw-r--r-- | tensorflow/examples/tutorials/mnist/BUILD | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/tensorflow/examples/autograph/integration_tests/errors_test.py b/tensorflow/examples/autograph/integration_tests/errors_test.py index 69e5936832..9c10dad9aa 100644 --- a/tensorflow/examples/autograph/integration_tests/errors_test.py +++ b/tensorflow/examples/autograph/integration_tests/errors_test.py @@ -92,7 +92,7 @@ class ErrorsTest(tf.test.TestCase): compiled_fn = ag.to_graph(test_fn) with self.assertRaises(ag.TfRuntimeError) as error: - with self.test_session() as sess: + with self.cached_session() as sess: x = compiled_fn(tf.constant([4, 8])) with ag.improved_errors(compiled_fn): sess.run(x) @@ -134,7 +134,7 @@ class ErrorsTest(tf.test.TestCase): # frame with "g" as the function name but because we don't yet add # try/except blocks to inner functions the name is "tf__g". with self.assertRaises(ag.TfRuntimeError) as error: - with self.test_session() as sess: + with self.cached_session() as sess: x = compiled_fn(tf.constant([4, 8])) with ag.improved_errors(compiled_fn): sess.run(x) diff --git a/tensorflow/examples/tutorials/mnist/BUILD b/tensorflow/examples/tutorials/mnist/BUILD index d4070fdd1e..99da44d6d5 100644 --- a/tensorflow/examples/tutorials/mnist/BUILD +++ b/tensorflow/examples/tutorials/mnist/BUILD @@ -84,6 +84,18 @@ py_binary( ) py_binary( + name = "mnist_softmax_xla", + srcs = [ + "mnist_softmax_xla.py", + ], + srcs_version = "PY2AND3", + deps = [ + ":input_data", + "//tensorflow:tensorflow_py", + ], +) + +py_binary( name = "mnist_deep", srcs = [ "mnist_deep.py", |