Skip to content

Commit 4b7a920

Browse files
author
Jan Ludwiczak
committed
fixes problems with new keras and tf version
1 parent aca9833 commit 4b7a920

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ bleach==1.5.0
33
enum34==1.1.6
44
h5py==2.7.1
55
html5lib==0.9999999
6-
Keras==2.1.5
6+
Keras==2.2.0
77
Markdown==2.6.11
88
numpy==1.14.3
9-
protobuf==3.5.2.post1
9+
protobuf==3.6.0
1010
PyYAML==3.12
1111
scipy==1.1.0
1212
six==1.11.0
13-
tensorflow==1.4.0
13+
setuptools==39.1.0
14+
tensorflow==1.10.0
1415
tensorflow-tensorboard==0.4.0
1516
Werkzeug==0.14.1

utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
stderr = sys.stderr
77
sys.stderr = open(os.devnull, 'w')
8-
from keras.layers import LSTM, Convolution1D, Dropout, BatchNormalization, TimeDistributed, Bidirectional, Input, merge, \
8+
from keras.layers import LSTM, Concatenate, Convolution1D, Dropout, BatchNormalization, TimeDistributed, Bidirectional, Input, \
99
Dense
1010
from keras.regularizers import l2
1111
from keras.models import Model
@@ -83,7 +83,7 @@ def PiPred_Model():
8383
b_b = BatchNormalization()(b)
8484
e = Convolution1D(64, 7, activation='tanh', padding='same', kernel_regularizer=l2(0.0001))(inp1)
8585
e_b = BatchNormalization()(e)
86-
x = merge([a_b, b_b, e_b], mode='concat', concat_axis=-1)
86+
x = Concatenate()([a_b, b_b, e_b])
8787
t = TimeDistributed(Dense(200, activation='relu', kernel_regularizer=l2(0.0001)))(x)
8888
k = Bidirectional(LSTM(200, return_sequences=True, activation='tanh', recurrent_activation='sigmoid', dropout=0.5,
8989
recurrent_dropout=0.5))(t)

0 commit comments

Comments
 (0)