From 671ca018a986b6827f8e693100d942fe385f9150 Mon Sep 17 00:00:00 2001 From: Fariz Rahman Date: Fri, 7 Apr 2017 02:48:37 +0530 Subject: [PATCH] pep8 fix --- keras_contrib/backend/theano_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras_contrib/backend/theano_backend.py b/keras_contrib/backend/theano_backend.py index 8f0ec95..5699256 100644 --- a/keras_contrib/backend/theano_backend.py +++ b/keras_contrib/backend/theano_backend.py @@ -190,10 +190,10 @@ def depth_to_space(input, scale, data_format=None): input = _preprocess_conv2d_input(input, data_format) b, k, row, col = input.shape - out_channels = k // (scale**2) + out_channels = k // (scale ** 2) x = T.reshape(input, (b, scale, scale, out_channels, row, col)) x = T.transpose(x, (0, 3, 4, 1, 5, 2)) - out = T.reshape(x, (b, out_channels, row*scale, col*scale)) + out = T.reshape(x, (b, out_channels, row * scale, col * scale)) out = _postprocess_conv2d_output(out, input, None, None, None, data_format) return out