FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add pylint check for W0611 unused-import in ci_sanity.sh and fix exis… · codeplaysoftware/tensorflow@b901807 · GitHub

Repository navigation

Commit b901807

Browse files
authored andcommitted
Add pylint check for W0611 unused-import in ci_sanity.sh and fix existing pylint errors.
PiperOrigin-RevId: 184790548
1 parent 2ec8905 commit b901807

38 files changed

Lines changed: 19 additions & 58 deletions

File tree

‎tensorflow/contrib/copy_graph/python/util/copy_test.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
from __future__ import division
1818
from __future__ import print_function
1919

20-
import numpy as np
2120
from tensorflow.contrib.copy_graph.python.util import copy_elements
22-
from tensorflow.contrib.framework.python.framework import tensor_util
2321
from tensorflow.python.client import session as session_lib
2422
from tensorflow.python.framework import constant_op
2523
from tensorflow.python.framework import ops

‎tensorflow/contrib/eager/python/examples/rnn_colorbot/rnn_colorbot.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
import tensorflow as tf
6666

6767
from tensorflow.contrib.eager.python import tfe
68-
from tensorflow.python.eager import context
6968

7069
try:
7170
import matplotlib.pyplot as plt # pylint: disable=g-import-not-at-top

‎tensorflow/contrib/framework/python/ops/accumulate_n_v2_eager_test.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,11 @@
2727
from tensorflow.contrib.framework.python.ops import accumulate_n_v2 as av2
2828

2929
from tensorflow.python.eager import backprop
30-
from tensorflow.python.eager import context as eager_context
31-
from tensorflow.python.eager import tape
3230

3331

3432
from tensorflow.python.framework import constant_op
35-
from tensorflow.python.framework import dtypes as dtypes_lib
3633
from tensorflow.python.framework import ops
3734
from tensorflow.python.framework import test_util
38-
from tensorflow.python.ops import gradients
39-
from tensorflow.python.ops import math_ops
4035
from tensorflow.python.ops import resource_variable_ops
4136
from tensorflow.python.platform import test
4237

‎tensorflow/contrib/framework/python/ops/accumulate_n_v2_test.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
from tensorflow.contrib.framework.python.ops import accumulate_n_v2 as av2
2424

25-
from tensorflow.python.framework import constant_op
2625
from tensorflow.python.framework import dtypes as dtypes_lib
2726
from tensorflow.python.framework import ops
2827
from tensorflow.python.framework import test_util

‎tensorflow/contrib/framework/python/ops/variables.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
from tensorflow.python.ops import array_ops
3333
from tensorflow.python.ops import control_flow_ops
3434
from tensorflow.python.ops import variable_scope
35-
from tensorflow.python.ops import gen_state_ops
36-
from tensorflow.python.platform import tf_logging as logging
3735
from tensorflow.python.platform import resource_loader
36+
from tensorflow.python.platform import tf_logging as logging
3837
from tensorflow.python.training import saver as tf_saver
3938
from tensorflow.python.training import training_util
4039
from tensorflow.python.util.deprecation import deprecated

‎tensorflow/contrib/image/python/kernel_tests/single_image_random_dot_stereograms_ops_test.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@
1818
from __future__ import division
1919
from __future__ import print_function
2020

21-
import numpy as np
22-
23-
from six.moves import xrange # pylint: disable=redefined-builtin
24-
2521
from tensorflow.contrib.image.python.ops.single_image_random_dot_stereograms \
2622
import single_image_random_dot_stereograms
27-
from tensorflow.python.client import session
2823
from tensorflow.python.framework import constant_op
2924
from tensorflow.python.framework import test_util
3025
from tensorflow.python.platform import googletest

‎tensorflow/contrib/learn/python/learn/datasets/base.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@
2323
import os
2424
from os import path
2525
import random
26-
import tempfile
2726
import time
2827

2928
import numpy as np
3029
from six.moves import urllib
3130

32-
from tensorflow.contrib.framework import deprecated
3331
from tensorflow.python.platform import gfile
3432

3533
Dataset = collections.namedtuple('Dataset', ['data', 'target'])

‎tensorflow/contrib/learn/python/learn/ops/ops_test.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import numpy as np
2222

23-
from tensorflow.contrib.layers import conv2d
2423
from tensorflow.contrib.learn.python.learn import ops
2524
from tensorflow.python.framework import constant_op
2625
from tensorflow.python.framework import dtypes

‎tensorflow/contrib/model_pruning/python/layers/layers.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from __future__ import division
2222
from __future__ import print_function
2323

24-
import numpy as np
2524
import six
2625

2726
from tensorflow.contrib.framework.python.ops import add_arg_scope

‎tensorflow/contrib/nn/python/ops/alpha_dropout.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818

1919
import numbers
2020

21-
from tensorflow.python.framework import dtypes
2221
from tensorflow.python.framework import ops
2322
from tensorflow.python.framework import tensor_shape
2423
from tensorflow.python.framework import tensor_util
2524
from tensorflow.python.ops import array_ops
2625
from tensorflow.python.ops import random_ops
2726
from tensorflow.python.ops import gen_math_ops
2827
from tensorflow.python.ops import math_ops
29-
from tensorflow.python.ops import nn_impl
3028

3129

3230
def alpha_dropout(x, keep_prob, noise_shape=None, seed=None, name=None): # pylint: disable=invalid-name

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL