Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jan 5, 2018
1 parent 04c11f8 commit b197ba9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions keras/layers/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,6 @@ def compute_output_shape(self, input_shape):
return (input_shape[0], rows, cols, self.filters)

def call(self, inputs):
_, _, filters = self.kernel_shape

output = K.local_conv2d(inputs,
self.kernel,
self.kernel_size,
Expand All @@ -364,8 +362,7 @@ def call(self, inputs):
self.data_format)

if self.use_bias:
if self.data_format == 'channels_first' or self.data_format == 'channels_last':
output = K.bias_add(output, self.bias, data_format=self.data_format)
output = K.bias_add(output, self.bias, data_format=self.data_format)

output = self.activation(output)
return output
Expand Down

0 comments on commit b197ba9

Please sign in to comment.