aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/softmax_op_test.py
diff options
context:
space:
mode:
authorGravatar Yifei Feng <yifeif@google.com>2018-02-09 16:02:24 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-09 16:06:00 -0800
commit940540ae4f6d9333dea693aaeabdd18996ed957b (patch)
treeb66bc2884cebec48eca1b47df9787540b8213210 /tensorflow/python/kernel_tests/softmax_op_test.py
parent2adb6bbb1b4d31bba7113a4213bf5e7f0e154c78 (diff)
Add pylint check for W0622 redefined-builtin in ci_sanity.sh and fix existing pylint errors.
PiperOrigin-RevId: 185206494
Diffstat (limited to 'tensorflow/python/kernel_tests/softmax_op_test.py')
-rw-r--r--tensorflow/python/kernel_tests/softmax_op_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/python/kernel_tests/softmax_op_test.py b/tensorflow/python/kernel_tests/softmax_op_test.py
index ac08f2aec0..4d89831aae 100644
--- a/tensorflow/python/kernel_tests/softmax_op_test.py
+++ b/tensorflow/python/kernel_tests/softmax_op_test.py
@@ -99,10 +99,10 @@ class SoftmaxTest(test.TestCase):
def _testOverflow(self, use_gpu=False):
if use_gpu:
- type = np.float32
+ type = np.float32 # pylint: disable=redefined-builtin
else:
- type = np.float64
- max = np.finfo(type).max
+ type = np.float64 # pylint: disable=redefined-builtin
+ max = np.finfo(type).max # pylint: disable=redefined-builtin
features = np.array([[1., 1., 1., 1.], [max, 1., 2., 3.]]).astype(type)
with self.test_session(use_gpu=use_gpu):
tf_log_softmax = nn_ops.log_softmax(features)