Skip to content

Commit

Permalink
Allow no ic_params on conv layers
Browse files Browse the repository at this point in the history
  • Loading branch information
sjawhar committed Mar 18, 2020
1 parent 625978b commit a13ced6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def add_conv1d_layer(model, name, ic_params={}, pool=None, **kwargs):
elif type(pool) is int:
pool = {PARAM_POOL_SIZE: pool}
add_layer(model, MaxPooling1D, f"{name}_pool", ic_params=None, **pool)
if type(ic_params) is not dict:
return
add_ic_layer(model, name, **ic_params)


Expand Down

0 comments on commit a13ced6

Please sign in to comment.