diff --git a/official/projects/nhnet/evaluation.py b/official/projects/nhnet/evaluation.py index 94aa221a03..eb256ca9b1 100644 --- a/official/projects/nhnet/evaluation.py +++ b/official/projects/nhnet/evaluation.py @@ -16,8 +16,6 @@ import os -# Import libraries - from absl import logging import numpy as np import tensorflow as tf, tf_keras diff --git a/official/projects/nhnet/trainer.py b/official/projects/nhnet/trainer.py index 07191d228c..5836d06f94 100644 --- a/official/projects/nhnet/trainer.py +++ b/official/projects/nhnet/trainer.py @@ -16,8 +16,6 @@ import os -# Import libraries - from absl import app from absl import flags from absl import logging diff --git a/official/projects/qat/nlp/quantization/configs_test.py b/official/projects/qat/nlp/quantization/configs_test.py index 09e9a2f481..390e4747c2 100644 --- a/official/projects/qat/nlp/quantization/configs_test.py +++ b/official/projects/qat/nlp/quantization/configs_test.py @@ -14,7 +14,6 @@ """Tests for configs.py.""" -# Import libraries from absl.testing import parameterized import numpy as np diff --git a/official/projects/qat/nlp/quantization/schemes.py b/official/projects/qat/nlp/quantization/schemes.py index a30d708aac..a032baf2dd 100644 --- a/official/projects/qat/nlp/quantization/schemes.py +++ b/official/projects/qat/nlp/quantization/schemes.py @@ -13,8 +13,6 @@ # limitations under the License. """Quantization schemes.""" -# Import libraries - import numpy as np import tensorflow as tf, tf_keras diff --git a/official/projects/qat/vision/modeling/heads/dense_prediction_heads.py b/official/projects/qat/vision/modeling/heads/dense_prediction_heads.py index 547365f162..132b393795 100644 --- a/official/projects/qat/vision/modeling/heads/dense_prediction_heads.py +++ b/official/projects/qat/vision/modeling/heads/dense_prediction_heads.py @@ -15,8 +15,6 @@ """Contains definitions of dense prediction heads.""" from typing import List, Mapping, Union, Optional, Any, Dict -# Import libraries - import numpy as np import tensorflow as tf, tf_keras diff --git a/official/projects/qat/vision/modeling/heads/dense_prediction_heads_test.py b/official/projects/qat/vision/modeling/heads/dense_prediction_heads_test.py index 76f6672655..77f8ba47db 100644 --- a/official/projects/qat/vision/modeling/heads/dense_prediction_heads_test.py +++ b/official/projects/qat/vision/modeling/heads/dense_prediction_heads_test.py @@ -15,7 +15,6 @@ # Lint as: python3 """Tests for dense_prediction_heads.py.""" -# Import libraries from absl.testing import parameterized import numpy as np import tensorflow as tf, tf_keras diff --git a/official/projects/qat/vision/quantization/configs_test.py b/official/projects/qat/vision/quantization/configs_test.py index 7a974a63ef..bd139f899a 100644 --- a/official/projects/qat/vision/quantization/configs_test.py +++ b/official/projects/qat/vision/quantization/configs_test.py @@ -14,8 +14,6 @@ """Tests for configs.py.""" -# Import libraries - import numpy as np import tensorflow as tf, tf_keras diff --git a/official/projects/qat/vision/quantization/schemes.py b/official/projects/qat/vision/quantization/schemes.py index 589c096f33..47aae92561 100644 --- a/official/projects/qat/vision/quantization/schemes.py +++ b/official/projects/qat/vision/quantization/schemes.py @@ -13,8 +13,6 @@ # limitations under the License. """Quantization schemes.""" -# Import libraries - import tensorflow_model_optimization as tfmot from official.projects.qat.vision.quantization import layer_transforms diff --git a/official/recommendation/create_ncf_data.py b/official/recommendation/create_ncf_data.py index 281860a937..4073e272b2 100644 --- a/official/recommendation/create_ncf_data.py +++ b/official/recommendation/create_ncf_data.py @@ -17,7 +17,6 @@ import json # pylint: disable=g-bad-import-order -# Import libraries from absl import app from absl import flags import tensorflow as tf, tf_keras diff --git a/official/recommendation/movielens.py b/official/recommendation/movielens.py index 9f13a44d89..510a47efb3 100644 --- a/official/recommendation/movielens.py +++ b/official/recommendation/movielens.py @@ -27,7 +27,6 @@ import zipfile # pylint: disable=g-bad-import-order -# Import libraries import numpy as np import pandas as pd import six diff --git a/official/vision/examples/starter/example_input.py b/official/vision/examples/starter/example_input.py index 7783122ca7..0c4709f8d6 100644 --- a/official/vision/examples/starter/example_input.py +++ b/official/vision/examples/starter/example_input.py @@ -19,7 +19,6 @@ format can be supported by implementing proper decoder and parser. """ from typing import Mapping, List, Tuple -# Import libraries import tensorflow as tf, tf_keras from official.vision.dataloaders import decoder diff --git a/official/vision/examples/starter/example_model.py b/official/vision/examples/starter/example_model.py index 6ba3a1d4cc..b6d462b06b 100644 --- a/official/vision/examples/starter/example_model.py +++ b/official/vision/examples/starter/example_model.py @@ -20,7 +20,6 @@ """ from typing import Any, Mapping -# Import libraries import tensorflow as tf, tf_keras from official.vision.examples.starter import example_config as example_cfg diff --git a/official/vision/losses/maskrcnn_losses.py b/official/vision/losses/maskrcnn_losses.py index 086d6d318f..b37f989dbf 100644 --- a/official/vision/losses/maskrcnn_losses.py +++ b/official/vision/losses/maskrcnn_losses.py @@ -14,7 +14,6 @@ """Losses for maskrcnn model.""" -# Import libraries import tensorflow as tf, tf_keras diff --git a/official/vision/losses/retinanet_losses.py b/official/vision/losses/retinanet_losses.py index 4a7aae5c89..08520a74e2 100644 --- a/official/vision/losses/retinanet_losses.py +++ b/official/vision/losses/retinanet_losses.py @@ -14,7 +14,6 @@ """Losses used for detection models.""" -# Import libraries import tensorflow as tf, tf_keras