Adds some internal-only warnings

PiperOrigin-RevId: 286498017
Change-Id: I467f6657b1908588dc2df9f9f5898aa5cc88d2ea
This commit is contained in:
A. Unique TensorFlower 2019-12-19 17:55:11 -08:00 committed by TensorFlower Gardener
parent bb608e0572
commit 8a2fe39fcf

View File

@ -390,7 +390,7 @@ class ApiCompatibilityTest(test.TestCase):
# Also check that V1 API has contrib
self.assertTrue(
api_version == 2 or
'tensorflow.python.util.lazy_loader.LazyLoader'
'LazyLoader'
in str(type(tf.contrib)))
# Check that V2 API does not have contrib
self.assertTrue(api_version == 1 or not hasattr(tf, 'contrib'))