From 751461f84b8d29c83216d719950b8d999c7381d5 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 14 Nov 2024 06:36:55 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 696501595 --- tensorflow_probability/examples/bayesian_neural_network.py | 1 - tensorflow_probability/examples/cifar10_bnn.py | 1 - tensorflow_probability/examples/logistic_regression.py | 1 - tensorflow_probability/examples/vq_vae.py | 1 - tensorflow_probability/python/glm/family_test.py | 2 -- tensorflow_probability/python/glm/fisher_scoring_test.py | 2 -- tensorflow_probability/python/glm/proximal_hessian_test.py | 2 -- tensorflow_probability/python/vi/csiszar_divergence.py | 1 - tensorflow_probability/python/vi/csiszar_divergence_test.py | 1 - tensorflow_probability/python/vi/optimization_test.py | 1 - 10 files changed, 13 deletions(-) diff --git a/tensorflow_probability/examples/bayesian_neural_network.py b/tensorflow_probability/examples/bayesian_neural_network.py index 976a99de69..d41e142d42 100644 --- a/tensorflow_probability/examples/bayesian_neural_network.py +++ b/tensorflow_probability/examples/bayesian_neural_network.py @@ -27,7 +27,6 @@ import os import warnings -# Dependency imports from absl import app from absl import flags import matplotlib diff --git a/tensorflow_probability/examples/cifar10_bnn.py b/tensorflow_probability/examples/cifar10_bnn.py index 4504667bd7..620014cb98 100644 --- a/tensorflow_probability/examples/cifar10_bnn.py +++ b/tensorflow_probability/examples/cifar10_bnn.py @@ -37,7 +37,6 @@ import os import warnings -# Dependency imports from absl import flags import matplotlib import numpy as np diff --git a/tensorflow_probability/examples/logistic_regression.py b/tensorflow_probability/examples/logistic_regression.py index c2171a3e8e..dbd6ea76d0 100644 --- a/tensorflow_probability/examples/logistic_regression.py +++ b/tensorflow_probability/examples/logistic_regression.py @@ -16,7 +16,6 @@ import os -# Dependency imports from absl import app from absl import flags from matplotlib import cm diff --git a/tensorflow_probability/examples/vq_vae.py b/tensorflow_probability/examples/vq_vae.py index d2b4e08f35..948a861e33 100644 --- a/tensorflow_probability/examples/vq_vae.py +++ b/tensorflow_probability/examples/vq_vae.py @@ -33,7 +33,6 @@ import os import time -# Dependency imports from absl import flags from matplotlib import cm from matplotlib import figure diff --git a/tensorflow_probability/python/glm/family_test.py b/tensorflow_probability/python/glm/family_test.py index 7c9853e9f6..3d675d3005 100644 --- a/tensorflow_probability/python/glm/family_test.py +++ b/tensorflow_probability/python/glm/family_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for GLM families.""" -# Dependency imports - import numpy as np import tensorflow.compat.v2 as tf from tensorflow_probability.python.distributions import bernoulli diff --git a/tensorflow_probability/python/glm/fisher_scoring_test.py b/tensorflow_probability/python/glm/fisher_scoring_test.py index 6dfa081d46..61f4c3cf79 100644 --- a/tensorflow_probability/python/glm/fisher_scoring_test.py +++ b/tensorflow_probability/python/glm/fisher_scoring_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for GLM Fisher Scoring.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/glm/proximal_hessian_test.py b/tensorflow_probability/python/glm/proximal_hessian_test.py index d8602d3ba1..cefdb0d0bf 100644 --- a/tensorflow_probability/python/glm/proximal_hessian_test.py +++ b/tensorflow_probability/python/glm/proximal_hessian_test.py @@ -14,8 +14,6 @@ # ============================================================================ """Tests for GLM fitting with Proximal Hessian method.""" -# Dependency imports - import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/vi/csiszar_divergence.py b/tensorflow_probability/python/vi/csiszar_divergence.py index 36049c0ec6..7a7b77f6d5 100644 --- a/tensorflow_probability/python/vi/csiszar_divergence.py +++ b/tensorflow_probability/python/vi/csiszar_divergence.py @@ -19,7 +19,6 @@ import traceback import warnings -# Dependency imports import numpy as np import tensorflow.compat.v2 as tf diff --git a/tensorflow_probability/python/vi/csiszar_divergence_test.py b/tensorflow_probability/python/vi/csiszar_divergence_test.py index 676a6dc1f4..fa85d961ce 100644 --- a/tensorflow_probability/python/vi/csiszar_divergence_test.py +++ b/tensorflow_probability/python/vi/csiszar_divergence_test.py @@ -17,7 +17,6 @@ import functools import re -# Dependency imports from absl.testing import parameterized import numpy as np diff --git a/tensorflow_probability/python/vi/optimization_test.py b/tensorflow_probability/python/vi/optimization_test.py index 5193f5b898..40c8cc1dd2 100644 --- a/tensorflow_probability/python/vi/optimization_test.py +++ b/tensorflow_probability/python/vi/optimization_test.py @@ -14,7 +14,6 @@ # ============================================================================ """Tests for variational optimization.""" -# Dependency imports import numpy as np import tensorflow.compat.v1 as tf1