aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/nn_grad.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/ops/nn_grad.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/ops/nn_grad.py')
-rw-r--r--tensorflow/python/ops/nn_grad.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/ops/nn_grad.py b/tensorflow/python/ops/nn_grad.py
index 5e6cafd6aa..2a883eb0d5 100644
--- a/tensorflow/python/ops/nn_grad.py
+++ b/tensorflow/python/ops/nn_grad.py
@@ -1010,7 +1010,7 @@ def _NthElementGrad(op, grad):
A list of two tensors, the first being the gradient w.r.t. the input,
the second being the gradient w.r.t. the N (None).
"""
- input = op.inputs[0]
+ input = op.inputs[0] # pylint: disable=redefined-builtin
output = op.outputs[0]
# Compute the number of elements which equal to output in each reduction