From a7520c8f520bb5643ff9a62d1b3532fe72ab7283 Mon Sep 17 00:00:00 2001 From: Tron Date: Sat, 22 Apr 2017 06:48:51 +0800 Subject: [PATCH] Mod: Changes one line to fix the Deconvolution3D's error (#73) --- keras_contrib/layers/convolutional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_contrib/layers/convolutional.py b/keras_contrib/layers/convolutional.py index e2180d4..c60df62 100644 --- a/keras_contrib/layers/convolutional.py +++ b/keras_contrib/layers/convolutional.py @@ -213,7 +213,7 @@ class Deconvolution3D(Convolution3D): if self.data_format == 'channels_first': output += K.reshape(self.bias, (1, self.filters, 1, 1, 1)) elif self.data_format == 'channels_last': - output += K.reshape(self.use_bias, (1, 1, 1, 1, self.filters)) + output += K.reshape(self.bias, (1, 1, 1, 1, self.filters)) else: raise ValueError('Invalid data_format: ', self.data_format) output = self.activation(output)