aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/keras
diff options
context:
space:
mode:
authorGravatar Martin Wicke <577277+martinwicke@users.noreply.github.com>2018-09-21 12:58:32 -0700
committerGravatar GitHub <noreply@github.com>2018-09-21 12:58:32 -0700
commit457ef66c2d4985000aa1d1a9bc643f66bbddd46d (patch)
treeeb9b0260aff7f10abd8cc03bbc28c7be0430cc4d /tensorflow/python/keras
parente25cf78285fef5234380ee26fef9090a939e91f5 (diff)
Fix long lines
Diffstat (limited to 'tensorflow/python/keras')
-rw-r--r--tensorflow/python/keras/layers/embeddings.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/python/keras/layers/embeddings.py b/tensorflow/python/keras/layers/embeddings.py
index a0b9393812..76e551a7ce 100644
--- a/tensorflow/python/keras/layers/embeddings.py
+++ b/tensorflow/python/keras/layers/embeddings.py
@@ -142,12 +142,14 @@ class Embedding(Layer):
else:
in_lens = [self.input_length]
if len(in_lens) != len(input_shape) - 1:
- raise ValueError('"input_length" is %s, but received input has shape %s' %
+ raise ValueError('"input_length" is %s, '
+ 'but received input has shape %s' %
(str(self.input_length), str(input_shape)))
else:
for i, (s1, s2) in enumerate(zip(in_lens, input_shape[1:])):
if s1 is not None and s2 is not None and s1 != s2:
- raise ValueError('"input_length" is %s, but received input has shape %s' %
+ raise ValueError('"input_length" is %s, '
+ 'but received input has shape %s' %
(str(self.input_length), str(input_shape)))
elif s1 is None:
in_lens[i] = s2