Skip to content

Commit 3d0f2e5

Browse files
committed
Fixed keras2 api warnings
1 parent 2dad3de commit 3d0f2e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Pilot2/P2B1/p2b1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def dense_auto(weights_path=None,input_shape=(784,),hidden_layers=None,nonlinear
138138
else:
139139
decoded=Dense(input_shape[0],kernel_regularizer=l2(l2_reg))(input_img)
140140

141-
model=Model(input=input_img,output=decoded)
141+
model=Model(outputs=decoded,inputs=input_img)
142142

143143
if weights_path:
144144
print('Loading Model')

Pilot2/P2B2/p2b2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def simple_test_rnn(T=1,D=1):
158158
encoder=TimeDistributed(Dense(20,activation='relu'))(input_img)
159159
rnn=LSTM(10,activation='elu',return_sequences=True, stateful=False)(encoder)
160160
decoder=TimeDistributed(Dense(20,activation='relu'))(rnn)
161-
model=Model(input=input_img,output=decoder)
161+
model=Model(outputs=decoder,inputs=input_img)
162162
return model
163163

164164

@@ -184,7 +184,7 @@ def dense_auto(weights_path=None,input_shape=(784,),hidden_layers=None,nonlinear
184184
else:
185185
decoded=Dense(input_shape[0])(input_img)
186186

187-
model=Model(input=input_img,output=decoded)
187+
model=Model(outputs=decoded,inputs=input_img)
188188

189189
if weights_path:
190190
print('Loading Model')
@@ -221,7 +221,7 @@ def rnn_dense_auto(weights_path=None,T=1,D=1,nonlinearity='relu',hidden_layers=N
221221
else:
222222
decoded=TimeDistributed(Dense(D))(input_img)
223223

224-
model=Model(input=input_img,output=decoded)
224+
model=Model(outputs=decoded,inputs=input_img)
225225

226226
if weights_path:
227227
print('Loading Model')

0 commit comments

Comments
 (0)