Adds some internal-only warnings
PiperOrigin-RevId: 286498017 Change-Id: I467f6657b1908588dc2df9f9f5898aa5cc88d2ea
This commit is contained in:
parent
bb608e0572
commit
8a2fe39fcf
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user