aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/layers
diff options
context:
space:
mode:
authorGravatar Scott Zhu <scottzhu@google.com>2018-08-06 15:52:27 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-06 16:00:57 -0700
commita802075bf3a54b1d3acf6dfca65ba902befd7bb2 (patch)
tree3e08232103d567ecc12abf7659ad114c7652151d /tensorflow/python/layers
parent7cc2dae9ed65dc03b1bddbad87cbf456ffbce332 (diff)
Internal cleanup
PiperOrigin-RevId: 207623153
Diffstat (limited to 'tensorflow/python/layers')
-rw-r--r--tensorflow/python/layers/convolutional.py8
-rw-r--r--tensorflow/python/layers/core.py5
-rw-r--r--tensorflow/python/layers/normalization.py4
-rw-r--r--tensorflow/python/layers/utils.py4
4 files changed, 0 insertions, 21 deletions
diff --git a/tensorflow/python/layers/convolutional.py b/tensorflow/python/layers/convolutional.py
index 36cef3855e..d40743b0ce 100644
--- a/tensorflow/python/layers/convolutional.py
+++ b/tensorflow/python/layers/convolutional.py
@@ -13,23 +13,15 @@
# limitations under the License.
# =============================================================================
-# pylint: disable=unused-import,g-bad-import-order
"""Contains the convolutional layer classes and their functional aliases.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-from tensorflow.python.eager import context
-from tensorflow.python.framework import ops
-from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras import layers as keras_layers
from tensorflow.python.layers import base
-from tensorflow.python.layers import utils
-from tensorflow.python.ops import array_ops
from tensorflow.python.ops import init_ops
-from tensorflow.python.ops import nn
-from tensorflow.python.ops import nn_ops
from tensorflow.python.util.tf_export import tf_export
diff --git a/tensorflow/python/layers/core.py b/tensorflow/python/layers/core.py
index aadff231da..261281ae7e 100644
--- a/tensorflow/python/layers/core.py
+++ b/tensorflow/python/layers/core.py
@@ -13,7 +13,6 @@
# limitations under the License.
# =============================================================================
-# pylint: disable=unused-import,g-bad-import-order
"""Contains the core layers: Dense, Dropout.
Also contains their functional aliases.
@@ -23,10 +22,6 @@ from __future__ import division
from __future__ import print_function
-import six
-from six.moves import xrange # pylint: disable=redefined-builtin
-import numpy as np
-
from tensorflow.python.keras import layers as keras_layers
from tensorflow.python.layers import base
from tensorflow.python.ops import init_ops
diff --git a/tensorflow/python/layers/normalization.py b/tensorflow/python/layers/normalization.py
index f7bc10a6a6..691dac6986 100644
--- a/tensorflow/python/layers/normalization.py
+++ b/tensorflow/python/layers/normalization.py
@@ -13,16 +13,12 @@
# limitations under the License.
# =============================================================================
-# pylint: disable=unused-import,g-bad-import-order
"""Contains the normalization layer classes and their functional aliases.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-import six
-from six.moves import xrange # pylint: disable=redefined-builtin
-import numpy as np
from tensorflow.python.keras import layers as keras_layers
from tensorflow.python.layers import base
diff --git a/tensorflow/python/layers/utils.py b/tensorflow/python/layers/utils.py
index 3b156c36a2..8e4b274207 100644
--- a/tensorflow/python/layers/utils.py
+++ b/tensorflow/python/layers/utils.py
@@ -13,19 +13,15 @@
# limitations under the License.
# =============================================================================
-# pylint: disable=unused-import,g-bad-import-order
"""Contains layer utilies for input validation and format conversion.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-from tensorflow.python.eager import context
from tensorflow.python.ops import variables
from tensorflow.python.ops import control_flow_ops
-from tensorflow.python.framework import ops
from tensorflow.python.framework import smart_cond as smart_module
-from tensorflow.python.framework import tensor_util
from tensorflow.python.util import nest