diff options
author | Yifei Feng <yifeif@google.com> | 2018-02-09 16:02:24 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-02-09 16:06:00 -0800 |
commit | 940540ae4f6d9333dea693aaeabdd18996ed957b (patch) | |
tree | b66bc2884cebec48eca1b47df9787540b8213210 /tensorflow/python/kernel_tests/softmax_op_test.py | |
parent | 2adb6bbb1b4d31bba7113a4213bf5e7f0e154c78 (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.py | 6 |
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) |