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/examples | |
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/examples')
-rw-r--r-- | tensorflow/examples/tutorials/word2vec/word2vec_basic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/tutorials/word2vec/word2vec_basic.py b/tensorflow/examples/tutorials/word2vec/word2vec_basic.py index f6906b0f79..14ae7fbf35 100644 --- a/tensorflow/examples/tutorials/word2vec/word2vec_basic.py +++ b/tensorflow/examples/tutorials/word2vec/word2vec_basic.py @@ -131,7 +131,7 @@ def generate_batch(batch_size, num_skips, skip_window): batch = np.ndarray(shape=(batch_size), dtype=np.int32) labels = np.ndarray(shape=(batch_size, 1), dtype=np.int32) span = 2 * skip_window + 1 # [ skip_window target skip_window ] - buffer = collections.deque(maxlen=span) + buffer = collections.deque(maxlen=span) # pylint: disable=redefined-builtin if data_index + span > len(data): data_index = 0 buffer.extend(data[data_index:data_index + span]) |