From 6d6481fedd18acc9a2de548f8516fa10ed7d2269 Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Tue, 8 Dec 2015 10:19:59 -0800 Subject: [PATCH] Style fixes --- keras/layers/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/keras/layers/core.py b/keras/layers/core.py index f37bdae5b..7f07a12e6 100644 --- a/keras/layers/core.py +++ b/keras/layers/core.py @@ -98,7 +98,8 @@ class Layer(object): if hasattr(self, 'input_ndim') and self.input_ndim: if self.input_ndim != len(input_shape): raise Exception('Invalid input shape - Layer expects input ndim=' + - str(self.input_ndim) + ', was provided with input shape ' + str(input_shape)) + str(self.input_ndim) + + ', was provided with input shape ' + str(input_shape)) self._input_shape = input_shape self.input = K.placeholder(shape=self._input_shape) self.build() @@ -117,8 +118,8 @@ class Layer(object): elif hasattr(self, 'input'): return self.input else: - raise Exception('Layer is not connected\ - and is not an input layer.') + raise Exception('Layer is not connected' + + 'and is not an input layer.') def supports_masked_input(self): ''' Whether or not this layer respects the output mask of its previous layer in its calculations. If you try