Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pzinemanas committed Mar 5, 2021
1 parent 5786ab6 commit e5b015a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dcase_models/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,12 @@ def build(self):
if self.use_time_distributed:
input_shape = (self.n_frames, self.n_freqs)
else:
input_shape = (self.n_freqs)
input_shape = (self.n_freqs,)

inputs = Input(shape=input_shape, dtype='float32', name='input')

y = inputs
# Hidden layers
for idx in range(len(self.hidden_layers_size)):
if idx == 0:
y = inputs
dense_layer = Dense(self.hidden_layers_size[idx],
activation=self.hidden_activation,
kernel_regularizer=l2(self.l2_reg),
Expand Down

0 comments on commit e5b015a

Please sign in to comment.