Commit Graph

5 Commits

Author SHA1 Message Date
Gaurav Jain
33bb4fe143 Apply run_deprecated_v1 to entire test class
Test classes having operations in the setUp function as well
as individual tests annotated with run_deprecated_v1 need to
have the whole class annotated with run_deprecated_v1 to ensure
the setUp function as well as the test function is run in graph
mode.

PiperOrigin-RevId: 225964901
2018-12-18 02:31:34 -08:00
Gaurav Jain
4890b781b6 Annotate tests as @run_v1_only
Skip individual test cases or entire suites that are not
running in v1. Also replace some @run_deprecated_v1
annotations since simply running the test in graph mode
was not enough.

PiperOrigin-RevId: 224604547
2018-12-07 17:41:47 -08:00
Gaurav Jain
b17d53c0cd Replace a few calls of Session run with evaluate
In order to support tests running in eager mode we need to avoid
unnecessary use of Sessions in tests. This moves to remove some
of the uses of the `run` function in favor of `evaluate`.

PiperOrigin-RevId: 223009795
2018-11-27 10:09:00 -08:00
A. Unique TensorFlower
626bc997c2 Move from deprecated self.test_session() to self.cached_session().
self.test_session() has been deprecated in 9962eb5e84 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about:
* the fact that the session may be reused.
* the session is not closed even when doing a "with self.test_session()" statement.

PiperOrigin-RevId: 212766976
2018-09-13 00:09:08 -07:00
A. Unique TensorFlower
60662676e4 Add EncodeBase64 and DecodeBase64 ops.
Change: 130534089
2016-08-17 10:33:51 -07:00