From 603a35bfd5cc370b349f59ce22036b1fcf32f907 Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 3 Dec 2024 11:26:11 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 702409596 --- tensorflow_probability/python/math/bessel.py | 1 - tensorflow_probability/python/math/custom_gradient_test.py | 1 - tensorflow_probability/python/math/diag_jacobian_test.py | 2 -- tensorflow_probability/python/math/generic_test.py | 1 - tensorflow_probability/python/math/gradient_test.py | 1 - tensorflow_probability/python/math/gram_schmidt_test.py | 1 - tensorflow_probability/python/math/hypergeometric.py | 1 - tensorflow_probability/python/math/integration.py | 2 -- tensorflow_probability/python/math/interpolation.py | 1 - tensorflow_probability/python/math/interpolation_test.py | 1 - tensorflow_probability/python/math/linalg_test.py | 1 - tensorflow_probability/python/math/minimize_test.py | 1 - tensorflow_probability/python/math/numeric_test.py | 1 - tensorflow_probability/python/math/root_search_test.py | 1 - tensorflow_probability/python/math/sparse_test.py | 1 - tensorflow_probability/python/math/special.py | 1 - 16 files changed, 18 deletions(-) diff --git a/tensorflow_probability/python/math/bessel.py b/tensorflow_probability/python/math/bessel.py index 3e4c91123a..afb098b267 100644 --- a/tensorflow_probability/python/math/bessel.py +++ b/tensorflow_probability/python/math/bessel.py @@ -14,7 +14,6 @@ # ============================================================================ """Implements bessel functions in TensorFlow.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.internal import custom_gradient as tfp_custom_gradient diff --git a/tensorflow_probability/python/math/custom_gradient_test.py b/tensorflow_probability/python/math/custom_gradient_test.py index c4c7df63fc..af8bdb5c62 100644 --- a/tensorflow_probability/python/math/custom_gradient_test.py +++ b/tensorflow_probability/python/math/custom_gradient_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Custom Gradient.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/math/diag_jacobian_test.py b/tensorflow_probability/python/math/diag_jacobian_test.py index 4f3010610b..eee7e644b8 100644 --- a/tensorflow_probability/python/math/diag_jacobian_test.py +++ b/tensorflow_probability/python/math/diag_jacobian_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Jacobian computation.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import mvn_tril diff --git a/tensorflow_probability/python/math/generic_test.py b/tensorflow_probability/python/math/generic_test.py index f0c80afdc9..eaa2a3b50e 100644 --- a/tensorflow_probability/python/math/generic_test.py +++ b/tensorflow_probability/python/math/generic_test.py @@ -18,7 +18,6 @@ import itertools import os -# Dependency imports from absl.testing import parameterized import numpy as np from scipy import special as sp_special diff --git a/tensorflow_probability/python/math/gradient_test.py b/tensorflow_probability/python/math/gradient_test.py index 31365dece3..5a0ae6e344 100644 --- a/tensorflow_probability/python/math/gradient_test.py +++ b/tensorflow_probability/python/math/gradient_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for Gradient.""" -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/math/gram_schmidt_test.py b/tensorflow_probability/python/math/gram_schmidt_test.py index 24083386be..078f968b68 100644 --- a/tensorflow_probability/python/math/gram_schmidt_test.py +++ b/tensorflow_probability/python/math/gram_schmidt_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np import scipy.linalg as scipy_linalg diff --git a/tensorflow_probability/python/math/hypergeometric.py b/tensorflow_probability/python/math/hypergeometric.py index f99c89ec2e..55fa7bd7ee 100644 --- a/tensorflow_probability/python/math/hypergeometric.py +++ b/tensorflow_probability/python/math/hypergeometric.py @@ -16,7 +16,6 @@ import functools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.internal import dtype_util diff --git a/tensorflow_probability/python/math/integration.py b/tensorflow_probability/python/math/integration.py index bf00577056..34ea61ad45 100644 --- a/tensorflow_probability/python/math/integration.py +++ b/tensorflow_probability/python/math/integration.py @@ -14,8 +14,6 @@ # ============================================================================ """Integration Ops.""" -# Dependency imports - import tensorflow.compat.v2 as tf from tensorflow_probability.python.internal import dtype_util diff --git a/tensorflow_probability/python/math/interpolation.py b/tensorflow_probability/python/math/interpolation.py index 5e1b2c54ed..ca52fd8151 100644 --- a/tensorflow_probability/python/math/interpolation.py +++ b/tensorflow_probability/python/math/interpolation.py @@ -16,7 +16,6 @@ import itertools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/math/interpolation_test.py b/tensorflow_probability/python/math/interpolation_test.py index 1290b10965..371375cb4c 100644 --- a/tensorflow_probability/python/math/interpolation_test.py +++ b/tensorflow_probability/python/math/interpolation_test.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ -# Dependency imports import numpy as np from scipy import interpolate as scipy_interpolate diff --git a/tensorflow_probability/python/math/linalg_test.py b/tensorflow_probability/python/math/linalg_test.py index eb36dc3e9b..d8c32d3a6e 100644 --- a/tensorflow_probability/python/math/linalg_test.py +++ b/tensorflow_probability/python/math/linalg_test.py @@ -16,7 +16,6 @@ import functools -# Dependency imports from absl.testing import parameterized import hypothesis as hp from hypothesis import strategies as hps diff --git a/tensorflow_probability/python/math/minimize_test.py b/tensorflow_probability/python/math/minimize_test.py index ef373022cc..3993390622 100644 --- a/tensorflow_probability/python/math/minimize_test.py +++ b/tensorflow_probability/python/math/minimize_test.py @@ -15,7 +15,6 @@ """Tests for minimization utils.""" import collections -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/math/numeric_test.py b/tensorflow_probability/python/math/numeric_test.py index 3bb719a46b..dc5a46069a 100644 --- a/tensorflow_probability/python/math/numeric_test.py +++ b/tensorflow_probability/python/math/numeric_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for tensorflow_probability.python.math.numeric.""" -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/math/root_search_test.py b/tensorflow_probability/python/math/root_search_test.py index 573b86c856..31eaf4f8f0 100644 --- a/tensorflow_probability/python/math/root_search_test.py +++ b/tensorflow_probability/python/math/root_search_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for root finding functions.""" -# Dependency imports import numpy as np import scipy.optimize as optimize diff --git a/tensorflow_probability/python/math/sparse_test.py b/tensorflow_probability/python/math/sparse_test.py index af3d4030be..a4f94186b8 100644 --- a/tensorflow_probability/python/math/sparse_test.py +++ b/tensorflow_probability/python/math/sparse_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for sparse ops.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/math/special.py b/tensorflow_probability/python/math/special.py index 3214679785..9d0c472d6a 100644 --- a/tensorflow_probability/python/math/special.py +++ b/tensorflow_probability/python/math/special.py @@ -16,7 +16,6 @@ import functools -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.internal import custom_gradient as tfp_custom_gradient