Commit Graph

12 Commits

Author SHA1 Message Date
A. Unique TensorFlower
a146fec654 [Tensorflow Metrics] Add tracker for enable_v2_behavior() and disable_v2_behavior.
DOC=https://docs.google.com/document/d/1Xk21sJBxtJAUvvLtQSYopiBdHe_8wUzv4kiICVYz8Jg/edit#heading=h.ng49b3y8n8x4

PiperOrigin-RevId: 288577048
Change-Id: Icdeb43ed4ec4606fdcd2da2930d5018042e72a4c
2020-01-07 14:52:30 -08:00
Brian Atkinson
4ca6bb5c34 Move additional_deps to deps for tf_py_test.
PiperOrigin-RevId: 285307780
Change-Id: Id556a146ba01afa1138454153ae6568e073ace41
2019-12-12 17:38:47 -08:00
Saurabh Saxena
2e236da0de Add API for checking whether v2 control flow is enabled.
PiperOrigin-RevId: 258665942
2019-07-17 16:38:28 -07:00
Alexandre Passos
e0e72724bd Tags some tests.
PiperOrigin-RevId: 258389587
2019-07-16 10:20:07 -07:00
A. Unique TensorFlower
a0e2b971b0 Adjust structure of all BUILD files to recommended style (https://docs.bazel.build/versions/master/skylark/build-style.html#file-structure), moving loads to top.
PiperOrigin-RevId: 252864967
2019-06-12 12:28:54 -07:00
A. Unique TensorFlower
278ed897b5 Apply 'buildozer fix moveLicensesAndDistribs movePackageToTop' to all BUILD files.
PiperOrigin-RevId: 249806664
2019-05-24 03:46:12 -07:00
Martin Wicke
9b91d454a4 Properly switch BatchNormalization layer on enable_v2.
Moving v2 compatibility code to its own file (cleaner, but also to avoid circular dependencies).

PiperOrigin-RevId: 226965517
2018-12-26 16:40:02 -08:00
Alexandre Passos
83cb1f1c5e disable_eager_execution actually disables eager execution
This makes it somewhat less safe to call (as there can be eager tensorso out
there which will mess up graph building) but makes it do what it says on the
label.

PiperOrigin-RevId: 226947417
2018-12-26 13:18:40 -08:00
Martin Wicke
61c7cbca28 Add functions to switch between 1.x and 2.x global behavior.
PiperOrigin-RevId: 223595880
2018-11-30 16:44:58 -08:00
Asim Shankar
6971bc84c3 Make forward compatibility utilities visible as tf.compat.forward_compatible.
PiperOrigin-RevId: 204927574
2018-07-17 10:00:19 -07:00
Rohan Jain
b3cd103c0e Adding a new current_date decorator that can change the
_FORWARD_COMPATIBILITY_HORIZON to something that is provided. Intended use is
for testing new code / behaviour while still the default is the old behaviour.

PiperOrigin-RevId: 203023068
2018-07-02 15:32:58 -07:00
Asim Shankar
503d7444f9 Python: Add a compat.py with a constant to help with
maintaining forward compatibility of Python API calls.

PiperOrigin-RevId: 202618021
2018-06-29 02:28:37 -07:00