Skip to content

Commit e1a39b8

Browse files
committed
Some code linting
1 parent 1564343 commit e1a39b8

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

keras/activations.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
from __future__ import absolute_import
2-
import theano
32
import theano.tensor as T
4-
import numpy as np
5-
import types
63

74
def softmax(x):
85
return T.nnet.softmax(x.reshape((-1, x.shape[-1]))).reshape(x.shape)

keras/layers/core.py

-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def __init__(self, p):
167167

168168
def get_output(self, train):
169169
X = self.get_input(train)
170-
mask = self.get_output_mask(train)
171170
if self.p > 0.:
172171
retain_prob = 1. - self.p
173172
if train:

keras/layers/recurrent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_output_mask(self, train=None):
1616
else:
1717
return None
1818

19-
def get_padded_shuffled_mask(self, train, X, pad = 0):
19+
def get_padded_shuffled_mask(self, train, X, pad=0):
2020
mask = self.get_input_mask(train)
2121
if mask is None:
2222
mask = T.ones_like(X.sum(axis=-1)) # is there a better way to do this without a sum?

0 commit comments

Comments
 (0)