From 95b22524217f1dc8c39ba167daf62047a068efa4 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 5 Dec 2024 11:06:20 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 703178387 --- .../linalg/linear_operator_interpolated_psd_kernel_test.py | 2 -- .../experimental/linalg/linear_operator_psd_kernel_test.py | 2 -- .../python/experimental/linalg/linear_operator_unitary_test.py | 2 -- .../python/experimental/stats/sample_stats.py | 2 -- .../python/experimental/stats/sample_stats_test.py | 2 -- .../python/experimental/vi/automatic_structured_vi_test.py | 2 -- .../python/experimental/vi/surrogate_posteriors_test.py | 2 -- .../python/internal/backend/meta/gen_linear_operators.py | 2 -- .../python/internal/backend/meta/gen_tensor_shape.py | 2 -- tensorflow_probability/python/mcmc/internal/util.py | 1 - tensorflow_probability/python/mcmc/internal/util_test.py | 2 -- .../python/sts/internal/missing_values_util.py | 1 - tensorflow_probability/python/sts/internal/util.py | 1 - 13 files changed, 23 deletions(-) diff --git a/tensorflow_probability/python/experimental/linalg/linear_operator_interpolated_psd_kernel_test.py b/tensorflow_probability/python/experimental/linalg/linear_operator_interpolated_psd_kernel_test.py index 017747a775..28afa52e6b 100644 --- a/tensorflow_probability/python/experimental/linalg/linear_operator_interpolated_psd_kernel_test.py +++ b/tensorflow_probability/python/experimental/linalg/linear_operator_interpolated_psd_kernel_test.py @@ -16,8 +16,6 @@ import functools -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/experimental/linalg/linear_operator_psd_kernel_test.py b/tensorflow_probability/python/experimental/linalg/linear_operator_psd_kernel_test.py index 9a4aefcf13..6fd1971df1 100644 --- a/tensorflow_probability/python/experimental/linalg/linear_operator_psd_kernel_test.py +++ b/tensorflow_probability/python/experimental/linalg/linear_operator_psd_kernel_test.py @@ -15,8 +15,6 @@ """Tests for PSD kernel linop.""" -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/experimental/linalg/linear_operator_unitary_test.py b/tensorflow_probability/python/experimental/linalg/linear_operator_unitary_test.py index 43cb6bdbce..16f7caeb18 100644 --- a/tensorflow_probability/python/experimental/linalg/linear_operator_unitary_test.py +++ b/tensorflow_probability/python/experimental/linalg/linear_operator_unitary_test.py @@ -15,8 +15,6 @@ """Tests for Unitary linop.""" -# Dependency imports - import tensorflow.compat.v2 as tf from tensorflow_probability.python.experimental.linalg import linear_operator_unitary diff --git a/tensorflow_probability/python/experimental/stats/sample_stats.py b/tensorflow_probability/python/experimental/stats/sample_stats.py index cd3f1221f8..d0165ab8dc 100644 --- a/tensorflow_probability/python/experimental/stats/sample_stats.py +++ b/tensorflow_probability/python/experimental/stats/sample_stats.py @@ -16,8 +16,6 @@ import functools import math -# 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/experimental/stats/sample_stats_test.py b/tensorflow_probability/python/experimental/stats/sample_stats_test.py index 76aeb33b5c..8b7322775c 100644 --- a/tensorflow_probability/python/experimental/stats/sample_stats_test.py +++ b/tensorflow_probability/python/experimental/stats/sample_stats_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for Sample Stats Ops.""" -# Dependency imports - from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/experimental/vi/automatic_structured_vi_test.py b/tensorflow_probability/python/experimental/vi/automatic_structured_vi_test.py index e9287768dd..aa3e8243eb 100644 --- a/tensorflow_probability/python/experimental/vi/automatic_structured_vi_test.py +++ b/tensorflow_probability/python/experimental/vi/automatic_structured_vi_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for structured surrogate posteriors.""" -# Dependency imports - from absl.testing import parameterized import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/experimental/vi/surrogate_posteriors_test.py b/tensorflow_probability/python/experimental/vi/surrogate_posteriors_test.py index 59d2152a23..f9a6e8e623 100644 --- a/tensorflow_probability/python/experimental/vi/surrogate_posteriors_test.py +++ b/tensorflow_probability/python/experimental/vi/surrogate_posteriors_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for surrogate posteriors.""" -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v1 as tf1 diff --git a/tensorflow_probability/python/internal/backend/meta/gen_linear_operators.py b/tensorflow_probability/python/internal/backend/meta/gen_linear_operators.py index 5c2cc38110..ea19ae8da6 100644 --- a/tensorflow_probability/python/internal/backend/meta/gen_linear_operators.py +++ b/tensorflow_probability/python/internal/backend/meta/gen_linear_operators.py @@ -18,8 +18,6 @@ import inspect import re -# Dependency imports - from absl import app from absl import flags diff --git a/tensorflow_probability/python/internal/backend/meta/gen_tensor_shape.py b/tensorflow_probability/python/internal/backend/meta/gen_tensor_shape.py index f81c45c3d9..419320439b 100644 --- a/tensorflow_probability/python/internal/backend/meta/gen_tensor_shape.py +++ b/tensorflow_probability/python/internal/backend/meta/gen_tensor_shape.py @@ -17,8 +17,6 @@ import importlib import inspect -# Dependency imports - from absl import app from absl import flags diff --git a/tensorflow_probability/python/mcmc/internal/util.py b/tensorflow_probability/python/mcmc/internal/util.py index 79b84d4b3c..2642c0169f 100644 --- a/tensorflow_probability/python/mcmc/internal/util.py +++ b/tensorflow_probability/python/mcmc/internal/util.py @@ -16,7 +16,6 @@ import warnings -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/mcmc/internal/util_test.py b/tensorflow_probability/python/mcmc/internal/util_test.py index c93fb4e174..e19179f05a 100644 --- a/tensorflow_probability/python/mcmc/internal/util_test.py +++ b/tensorflow_probability/python/mcmc/internal/util_test.py @@ -17,8 +17,6 @@ import collections import warnings -# Dependency imports - from absl.testing import parameterized import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/internal/missing_values_util.py b/tensorflow_probability/python/sts/internal/missing_values_util.py index a61309f226..273c92accc 100644 --- a/tensorflow_probability/python/sts/internal/missing_values_util.py +++ b/tensorflow_probability/python/sts/internal/missing_values_util.py @@ -15,7 +15,6 @@ """Utilities for time series with missing values.""" import collections -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/sts/internal/util.py b/tensorflow_probability/python/sts/internal/util.py index c4666d4a61..4279503480 100644 --- a/tensorflow_probability/python/sts/internal/util.py +++ b/tensorflow_probability/python/sts/internal/util.py @@ -13,7 +13,6 @@ # limitations under the License. # ============================================================================ """Structural Time Series utilities.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1