Skip to content

Commit

Permalink
Fixed keras2 api warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanessen committed Apr 18, 2017
1 parent 2dad3de commit 3d0f2e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Pilot2/P2B1/p2b1.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def dense_auto(weights_path=None,input_shape=(784,),hidden_layers=None,nonlinear
else:
decoded=Dense(input_shape[0],kernel_regularizer=l2(l2_reg))(input_img)

model=Model(input=input_img,output=decoded)
model=Model(outputs=decoded,inputs=input_img)

if weights_path:
print('Loading Model')
Expand Down
6 changes: 3 additions & 3 deletions Pilot2/P2B2/p2b2.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def simple_test_rnn(T=1,D=1):
encoder=TimeDistributed(Dense(20,activation='relu'))(input_img)
rnn=LSTM(10,activation='elu',return_sequences=True, stateful=False)(encoder)
decoder=TimeDistributed(Dense(20,activation='relu'))(rnn)
model=Model(input=input_img,output=decoder)
model=Model(outputs=decoder,inputs=input_img)
return model


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

model=Model(input=input_img,output=decoded)
model=Model(outputs=decoded,inputs=input_img)

if weights_path:
print('Loading Model')
Expand Down Expand Up @@ -221,7 +221,7 @@ def rnn_dense_auto(weights_path=None,T=1,D=1,nonlinearity='relu',hidden_layers=N
else:
decoded=TimeDistributed(Dense(D))(input_img)

model=Model(input=input_img,output=decoded)
model=Model(outputs=decoded,inputs=input_img)

if weights_path:
print('Loading Model')
Expand Down

0 comments on commit 3d0f2e5

Please sign in to comment.