Internal change.
authorAnna R <annarev@google.com>
Tue, 3 Apr 2018 00:31:47 +0000 (17:31 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 3 Apr 2018 00:34:18 +0000 (17:34 -0700)
PiperOrigin-RevId: 191374719

tensorflow/python/ops/math_ops.py
tensorflow/tools/api/tests/api_compatibility_test.py

index 1c20d00..39f4088 100644 (file)
@@ -71,7 +71,6 @@ See the @{$python/math_ops} guide.
 @@igammac
 @@zeta
 @@polygamma
-@@polyval
 @@betainc
 @@rint
 @@diag
index 603b2a4..7eeae05 100644 (file)
@@ -145,6 +145,9 @@ class ApiCompatibilityTest(test.TestCase):
       verbose_diff_message = ''
       # First check if the key is not found in one or the other.
       if key in only_in_expected:
+        # TODO(annarev): remove once we switch to using tf_export decorators.
+        if key == 'tensorflow.math':
+          continue
         diff_message = 'Object %s expected but not found (removed). %s' % (
             key, additional_missing_object_message)
         verbose_diff_message = diff_message
@@ -229,6 +232,13 @@ class ApiCompatibilityTest(test.TestCase):
         for filename in golden_file_list
     }
 
+    # TODO(annarev): remove once we switch to using tf_export decorators.
+    tf_module = golden_proto_dict['tensorflow'].tf_module
+    for i in range(len(tf_module.member)):
+      if tf_module.member[i].name == 'math':
+        del tf_module.member[i]
+        break
+
     # Diff them. Do not fail if called with update.
     # If the test is run to update goldens, only report diffs but do not fail.
     self._AssertProtoDictEquals(